location = new Location(); } /** * Get recipient. * * @return string * * @since 1.0.0 */ public function getRecipient() : string { return $this->recipient; } /** * Set recipient. * * @param string $recipient Recipient * * @return void * * @since 1.0.0 */ public function setRecipient(string $recipient) /* : void */ { $this->recipient = $recipient; } /** * Get FAO. * * @return string * * @since 1.0.0 */ public function getFAO() : string { return $this->fao; } /** * Set FAO. * * @param string $fao FAO * * @return void * * @since 1.0.0 */ public function setFAO(string $fao) /* : void */ { $this->fao = $fao; } /** * Get location. * * @return Location * * @since 1.0.0 */ public function getLocation() : Location { return $this->location; } /** * Set location. * * @param Location $location Location * * @return void * * @since 1.0.0 */ public function setLocation(Location $location) /* : void */ { $this->location = $location; } /** * {@inheritdoc} */ public function jsonSerialize(int $option = 0) { return $this->toArray(); } /** * {@inheritdoc} */ public function toArray() : array { return ['recipient' => $this->recipient, 'fao' => $this->fao, 'location' => $this->location->toArray()]; } }