public function __construct(BothTest $start, BothTest $end) { $this->startNode = $start; $this->endNode = $end; }