original_string: protected function createResourceFromClient(ClientEntity $client)
      {
          $resource = new Resource(
              $this->generateReadUrl($client->getId()),
              array(
                   'id'           => $client->getId(),
                   'publicId'     => $client->getPublicId(),
                   'secret'       => $client->getSecret(),
                   'redirectUris' => $client->getRedirectUris(),
                   'grants'       => $client->getAllowedGrantTypes(),
              )
          );
  
          return $resource;
      }
code: protected function createResourceFromClient(ClientEntity $client)
      {
          $resource = new Resource(
              $this->generateReadUrl($client->getId()),
              array(
                   'id'           => $client->getId(),
                   'publicId'     => $client->getPublicId(),
                   'secret'       => $client->getSecret(),
                   'redirectUris' => $client->getRedirectUris(),
                   'grants'       => $client->getAllowedGrantTypes(),
              )
          );
  
          return $resource;
      }
code_tokens: protected function createResourceFromClient ( ClientEntity $ client ) { $ resource = new Resource ( $ this -> generateReadUrl ( $ client -> getId ( ) ) , array ( 'id' => $ client -> getId ( ) , 'publicId' => $ client -> getPublicId ( ) , 'secret' => $ client -> getSecret ( ) , 'redirectUris' => $ client -> getRedirectUris ( ) , 'grants' => $ client -> getAllowedGrantTypes ( ) , ) ) ; return $ resource ; }
docstring: Creates a new resource from the given Client entity.
  
  @param ClientEntity $client
  
  @return Resource
docstring_tokens: Creates a new resource from the given Client entity .