/** * @param array $state State to restore entity to. */ public function restoreState(array $state) { parent::restoreState($state); if (isset($state['url'])) { $this->url = $state['url']; } if (isset($state['limit'])) { $this->limit = $state['limit']; } }