-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAccountUsername.php
31 lines (27 loc) · 1.05 KB
/
AccountUsername.php
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
<?php
declare(strict_types=1);
namespace Upmind\ProvisionProviders\SharedHosting\Data;
use Upmind\ProvisionBase\Provider\DataSet\DataSet;
use Upmind\ProvisionBase\Provider\DataSet\Rules;
/**
* Data for uniquely identifying a hosting account.
*
* @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 bool|null $is_reseller Whether or not the account has reseller privileges
*/
class AccountUsername extends DataSet
{
public static function rules(): Rules
{
return new Rules([
'customer_id' => ['nullable'],
'subscription_id' => ['nullable'],
'username' => ['required', 'string'],
'domain' => ['nullable', 'domain_name'],
'is_reseller' => ['nullable', 'boolean'],
]);
}
}