original_string: public function getCollection(array $options = array())
      {
          /** @var ClientEntity[] $collection */
          $collection = $this->getRepository()->findAll();
          $resource   = new Resource($this->generateBrowseUrl(), array('count' => count($collection)));
  
          foreach ($collection as $element) {
              $resource->setEmbedded('client', $this->createResourceFromClient($element));
          }
  
          return $resource;
      }
code: public function getCollection(array $options = array())
      {
          /** @var ClientEntity[] $collection */
          $collection = $this->getRepository()->findAll();
          $resource   = new Resource($this->generateBrowseUrl(), array('count' => count($collection)));
  
          foreach ($collection as $element) {
              $resource->setEmbedded('client', $this->createResourceFromClient($element));
          }
  
          return $resource;
      }
code_tokens: public function getCollection ( array $ options = array ( ) ) { /** @var ClientEntity[] $collection */ $ collection = $ this -> getRepository ( ) -> findAll ( ) ; $ resource = new Resource ( $ this -> generateBrowseUrl ( ) , array ( 'count' => count ( $ collection ) ) ) ; foreach ( $ collection as $ element ) { $ resource -> setEmbedded ( 'client' , $ this -> createResourceFromClient ( $ element ) ) ; } return $ resource ; }
docstring: Returns all clients in a single collection resource.
  
  @param string[] $options
  
  @return Resource
docstring_tokens: Returns all clients in a single collection resource .