allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
135
vendor/league/oauth1-client/src/Server/User.php
vendored
Normal file
135
vendor/league/oauth1-client/src/Server/User.php
vendored
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
|
||||
namespace League\OAuth1\Client\Server;
|
||||
|
||||
use ArrayIterator;
|
||||
|
||||
class User implements \IteratorAggregate
|
||||
{
|
||||
/**
|
||||
* The user's unique ID.
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public $uid;
|
||||
|
||||
/**
|
||||
* The user's nickname (screen name, username etc).
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public $nickname;
|
||||
|
||||
/**
|
||||
* The user's name.
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public $name;
|
||||
|
||||
/**
|
||||
* The user's first name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $firstName;
|
||||
|
||||
/**
|
||||
* The user's last name.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $lastName;
|
||||
|
||||
/**
|
||||
* The user's email.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $email;
|
||||
|
||||
/**
|
||||
* The user's location.
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public $location;
|
||||
|
||||
/**
|
||||
* The user's description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $description;
|
||||
|
||||
/**
|
||||
* The user's image URL.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $imageUrl;
|
||||
|
||||
/**
|
||||
* The users' URLs.
|
||||
*
|
||||
* @var string|array
|
||||
*/
|
||||
public $urls = [];
|
||||
|
||||
/**
|
||||
* Any extra data.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $extra = [];
|
||||
|
||||
/**
|
||||
* Set a property on the user.
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __set($key, $value)
|
||||
{
|
||||
if (isset($this->{$key})) {
|
||||
$this->{$key} = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Tells if a property is set.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function __isset($key)
|
||||
{
|
||||
return isset($this->{$key});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a property from the user.
|
||||
*
|
||||
* @param string $key
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
if (isset($this->{$key})) {
|
||||
return $this->{$key};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function getIterator()
|
||||
{
|
||||
return new ArrayIterator(get_object_vars($this));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user