Overtrue\Socialite\AccessToken::__construct PHP Метод

__construct() публичный Метод

AccessToken constructor.
public __construct ( array $attributes )
$attributes array
    public function __construct(array $attributes)
    {
        if (empty($attributes['access_token'])) {
            throw new InvalidArgumentException('The key "access_token" could not be empty.');
        }
        $this->attributes = $attributes;
    }