protected function getProperty(UserResponseInterface $response)
    {
        $resourceOwnerName = $response->getResourceOwner()->getName();

        if (!isset($this->properties[$resourceOwnerName])) {
            throw new \RuntimeException(sprintf("No property defined for entity for resource owner '%s'.", $resourceOwnerName));
        }

        return $this->properties[$resourceOwnerName];
    }
protected function getProperty(UserResponseInterface $response)
    {
        $resourceOwnerName = $response->getResourceOwner()->getName();

        if (!isset($this->properties[$resourceOwnerName])) {
            throw new \RuntimeException(sprintf("No property defined for entity for resource owner '%s'.", $resourceOwnerName));
        }

        return $this->properties[$resourceOwnerName];
    }
protected function getProperty ( UserResponseInterface $ response ) { $ resourceOwnerName = $ response -> getResourceOwner ( ) -> getName ( ) ; if ( ! isset ( $ this -> properties [ $ resourceOwnerName ] ) ) { throw new \ RuntimeException ( sprintf ( "No property defined for entity for resource owner '%s'." , $ resourceOwnerName ) ) ; } return $ this -> properties [ $ resourceOwnerName ] ; }
Gets the property for the response.

@param UserResponseInterface $response

@return string

@throws \RuntimeException
Gets the property for the response .