Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/library/OAuth/UserData/Google.php

21 lines
412 B
PHP

<?php
namespace Httpcb\OAuth\UserData;
class Google extends UserData
{
protected $_provider = 'Google';
/**
* {@inheritDoc}
*/
public function __construct(array $data)
{
$this->_id = $data['id'];
$this->_name = $data['displayName'];
if (isset($data['emails'][0]['value'])) {
$this->_email = $data['emails'][0]['value'];
}
}
}