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;
    }
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;
    }
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 ; }
Creates a new resource from the given Client entity.

@param ClientEntity $client

@return Resource
Creates a new resource from the given Client entity .