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;
    }