<?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 { }