response = $response; } /** * Get resource owner email * * @return string|null */ public function getEmail() { return $this->getValueByKey($this->response, 'emailAddress'); } /** * Get resource owner id * * @return string|null */ public function getId() { return $this->getValueByKey($this->response, 'accountId'); } /** * Get resource owner name * * @return string|null */ public function getName() { return $this->getValueByKey($this->response, 'displayName'); } /** * Get resource owner nickname * * @return string|null */ public function getNickname() { return $this->getValueByKey($this->response, 'name'); } /** * Return all of the owner details available as an array. * * @return array */ public function toArray() { return $this->response; } }