checkParams($params, array( 'tags' => "Muzich\CoreBundle\Searcher\ElementSearch::init(): \$params: Au moins un tag est nécéssaire" )); // Mise a jour des attributs $this->setAttributes(array( 'network', 'tags', 'count' ), $params); } /** * @see SearcherInterface * @param array $params */ public function update($params) { // Mise a jour des attributs $this->setAttributes(array( 'network', 'tags', 'count' ), $params); } /** * Récupération des paramètres de la recherche. * * @return array */ public function getParams() { return array( 'network' => $this->getNetwork(), 'tags' => $this->getTags(), 'count' => $this->getCount() ); } public function getNetwork() { return $this->network; } public function getTags() { return $this->tags; } public function getCount() { return $this->count; } }