/** * @return string */ public function __toString() { $str = parent::__toString(); $str .= 'Destination: ' . $this->planeDestination . "<br>\n"; $str .= 'Speed: ' . $this->planeSpeed . "<br>\n"; return $str; }