/** * Serialize object. * * @access public * @return string */ public function serialize() { return serialize(unserialize(parent::serialize() + ['callsign' => $this->getCallsign(), 'altitude' => $this->getAltitude(), 'ground-speed' => $this->getGroundSpeed(), 'track' => $this->getTrack(), 'latitude' => $this->getLatitude(), 'longitude' => $this->getLongitude(), 'vertical-rate' => $this->getVerticalRate(), 'squawk' => $this->getSquawk(), 'alert' => $this->isAlert(), 'emergency' => $this->isEmergency(), 'spi' => $this->isSpi(), 'on-ground' => $this->isOnGround()])); }
/** * Serialize object. * * @access public * @return string */ public function serialize() { return serialize(unserialize(parent::serialize() + ['callsign' => $this->getCallsign()])); }