-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGetLoginUrlParams.php
More file actions
37 lines (33 loc) · 1.41 KB
/
GetLoginUrlParams.php
File metadata and controls
37 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
namespace Upmind\ProvisionProviders\SharedHosting\Data;
use Upmind\ProvisionBase\Provider\DataSet\DataSet;
use Upmind\ProvisionBase\Provider\DataSet\Rules;
/**
* Data for obtaining a pre-signed login URL.
*
* @property-read string|integer|null $customer_id ID of the customer on the hosting platform
* @property-read string|integer|null $subscription_id ID of the subscription on the hosting platform, if any
* @property-read string $username Username of the account
* @property-read string|null $domain Domain name for this account/subscription
* @property-read string $user_ip IP of the person who wishes to log in
* @property-read boolean|null $is_reseller Whether or not the account is a reseller
* @property-read string|null $current_password current password for the username
* @property-read SoftwareInstallationIdentifier|null $software
*/
class GetLoginUrlParams extends DataSet
{
public static function rules(): Rules
{
return new Rules([
'customer_id' => ['nullable'],
'subscription_id' => ['nullable'],
'username' => ['required', 'string'],
'domain' => ['nullable', 'domain_name'],
'user_ip' => ['required', 'ip'],
'is_reseller' => ['boolean'],
'software' => ['nullable', SoftwareInstallationIdentifier::class],
'current_password' => ['nullable', 'string']
]);
}
}