-
Notifications
You must be signed in to change notification settings - Fork 6
/
AccountUsage.php
43 lines (37 loc) · 1.03 KB
/
AccountUsage.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
32
33
34
35
36
37
38
39
40
41
42
43
<?php
declare(strict_types=1);
namespace Upmind\ProvisionProviders\SharedHosting\Data;
use Upmind\ProvisionBase\Provider\DataSet\ResultData;
use Upmind\ProvisionBase\Provider\DataSet\Rules;
/**
* Account/reseller usage data.
*
* @property-read UsageData|null $usage_data Account usage data
* @property-read ResellerUsageData|null $reseller_usage_data Reseller usage data
*/
class AccountUsage extends ResultData
{
public static function rules(): Rules
{
return new Rules([
'usage_data' => ['nullable', UsageData::class],
'reseller_usage_data' => ['nullable', ResellerUsageData::class],
]);
}
/**
* @param UsageData|array|null $usage
*/
public function setUsageData($usage): self
{
$this->setValue('usage_data', $usage);
return $this;
}
/**
* @param ResellerUsageData|array|null $usage
*/
public function setResellerUsageData($usage): self
{
$this->setValue('reseller_usage_data', $usage);
return $this;
}
}