Beispiel #1
0
 public function __toString()
 {
     $str = parent::__toString();
     $str .= 'Brand: ' . $this->getCarBrand() . '<br>';
     $str .= 'Vehicle: ' . $this->getCarVehicle() . '<br>';
     return $str;
 }
Beispiel #2
0
 public function __construct(Engine $engine, $colour = Vehicle::UNPAINTED)
 {
     parent::__construct($engine, $colour);
 }