}
    public function setX($x)
    {
        $this->x = $x;
    }
    public function setPoint($object)
    {
        $this->x = $object->x;
        $this->y = $object->y;
    }
    public function __toString()
    {
        return "Точка с координатам ({$this->x}, {$this->y})";
    }
    public function __destruct()
    {
        echo "<br/> Объект уничтожен";
    }
}
$point = new Point(5, 7);
echo $point->x . "<br/>";
echo $point->y . "<br/>";
$point->y = 100;
echo $point->y . "<br/>";
echo $point->getX() . "<br/>";
$point->setX(10);
echo $point->x . "<br/>";
echo $point . "<br/>";
$point_1 = new Point(15, -7);
$point->setPoint($point_1);
echo $point . "<br/>";