bike->setPart('engine', new Parts\Engine()); } /** * {@inheritdoc} */ public function addWheel() { $this->bike->setPart('forwardWheel', new Parts\Wheel()); $this->bike->setPart('rearWheel', new Parts\Wheel()); } /** * {@inheritdoc} */ public function createVehicle() { $this->bike = new Parts\Bike(); } /** * {@inheritdoc} */ public function getVehicle() { return $this->bike; } }