public function getResources() { if (null === $this->repo) { throw new NotInitializedException('The repository of the resource binding must be set before accessing resources.'); } return $this->repo->find($this->query, $this->language); }