response = $response; } /** * Get resource owner id * * @return string|null */ public function getId() { return $this->response['sub'] ?: null; } /** * Get resource owner email * * @return string|null */ public function getEmail() { return $this->response['email'] ?: null; } /** * Get resource owner name * * @return string|null */ public function getName() { return $this->response['name'] ?: null; } /** * Return all of the owner details available as an array. * * @return array */ public function toArray() { return $this->response; } }