Exemplo n.º 1
0
 /**
  * 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()]));
 }
Exemplo n.º 2
0
 /**
  * Serialize object.
  *
  * @access public
  * @return string
  */
 public function serialize()
 {
     return serialize(unserialize(parent::serialize() + ['callsign' => $this->getCallsign()]));
 }