public function getAuthorizator($need = TRUE) { if ($need && !$this->authorizator) { throw new Nette\InvalidStateException('Authorizator has not been set.'); } return $this->authorizator; }