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