Overtrue\Socialite\AccessToken::__construct PHP Method

__construct() public method

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