protected function hydrateEntity($result)
    {
        $client = new ClientEntity($this->getServer());
        $client->hydrate([
            'id' => $result->id,
            'name' => $result->name,
            'secret' => $result->secret,
            'redirectUri' => (isset($result->redirect_uri) ? $result->redirect_uri : null),
        ]);

        return $client;
    }
protected function hydrateEntity($result)
    {
        $client = new ClientEntity($this->getServer());
        $client->hydrate([
            'id' => $result->id,
            'name' => $result->name,
            'secret' => $result->secret,
            'redirectUri' => (isset($result->redirect_uri) ? $result->redirect_uri : null),
        ]);

        return $client;
    }
protected function hydrateEntity ( $ result ) { $ client = new ClientEntity ( $ this -> getServer ( ) ) ; $ client -> hydrate ( [ 'id' => $ result -> id , 'name' => $ result -> name , 'secret' => $ result -> secret , 'redirectUri' => ( isset ( $ result -> redirect_uri ) ? $ result -> redirect_uri : null ) , ] ) ; return $ client ; }
Hydrate the entity.

@param $result

@return \League\OAuth2\Server\Entity\ClientEntity
Hydrate the entity .