-
Notifications
You must be signed in to change notification settings - Fork 1
/
ChangePackageParams.php
27 lines (23 loc) · 851 Bytes
/
ChangePackageParams.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
<?php
declare(strict_types=1);
namespace Upmind\ProvisionProviders\SoftwareLicenses\Data;
use Upmind\ProvisionBase\Provider\DataSet\DataSet;
use Upmind\ProvisionBase\Provider\DataSet\Rules;
/**
* @property-read mixed $license_key License key
* @property-read string|int|null $customer_identifier Service customer identifier, if any
* @property-read string|null $package_identifier Service package identifier, if any
* @property-read mixed[]|null $extra Any extra data to pass to the service endpoint
*/
class ChangePackageParams extends DataSet
{
public static function rules(): Rules
{
return new Rules([
'license_key' => ['required'],
'customer_identifier' => ['nullable'],
'package_identifier' => ['nullable', 'string'],
'extra' => ['nullable', 'array'],
]);
}
}