for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Shadowhand\OAuth2\Client\Provider;
use League\OAuth2\Client\Provider\ResourceOwnerInterface;
class UntappdUser implements ResourceOwnerInterface
{
/**
* @var array
*/
protected $response;
* @param array $response
public function __construct(array $response)
$this->response = $response;
}
public function getId()
return $this->response['uid'];
* Get the username.
*
* @return string
public function getUsername()
return $this->response['user_name'];
* Get perferred first name.
public function getFirstName()
return $this->response['first_name'];
* Get perferred last name.
public function getLastName()
return $this->response['last_name'];
* Get email address.
public function getEmail()
return $this->response['settings']['email_address'];
* Get user data as an array.
* @return array
public function toArray()
return $this->response;