<?php//PHP 中没有结构体interface IText { function toText(): string;}class Point implements IText { public $x, $y; function toText(): string { return "x = $this->x; y = $this->y"; }}class RedPoint extends Point { }