public function newDeclaration(Client $client) { $this->clients[] = $client; $this->declarations[] = new Declaration($client, $client->getAssetsList()); $s = new Service($this->employees[0], $client, 'Declaration'); $this->services[] = $s; self::store($s, 'Declaration', count($this->services)); self::store($client, 'TaxPayers', count($this->clients)); }