public function __construct($id, Point $a, Point $b) { $this->id = $id; $this->a = $a; $this->b = $b; }