Esempio n. 1
0
 public function jsonSerialize()
 {
     return array_merge(array('resources' => $this->resources, 'buildings' => $this->buildings, 'research' => $this->research, 'ships' => $this->ships, 'defence' => $this->defence), parent::jsonSerialize());
 }
Esempio n. 2
0
 public function jsonSerialize()
 {
     return array_merge(array('defence' => $this->defence), parent::jsonSerialize());
 }