public function getUser($userId)
    {
        $response = $this->getClient()->get(self::ENDPOINT.$userId);
        $data = $this->jsonResponse($response);

        return $this->getFactory()->createEntity($data);
    }
public function getUser($userId)
    {
        $response = $this->getClient()->get(self::ENDPOINT.$userId);
        $data = $this->jsonResponse($response);

        return $this->getFactory()->createEntity($data);
    }
public function getUser ( $ userId ) { $ response = $ this -> getClient ( ) -> get ( self :: ENDPOINT . $ userId ) ; $ data = $ this -> jsonResponse ( $ response ) ; return $ this -> getFactory ( ) -> createEntity ( $ data ) ; }
Get user.

@param string $userId

@return User
Get user .