Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class HourlyRateDto |
||
8 | { |
||
9 | private $amount; |
||
10 | private $currency; |
||
11 | |||
12 | public static function fromArray(array $data): self |
||
13 | { |
||
14 | return new self($data['amount'], $data['currency']); |
||
15 | } |
||
16 | |||
17 | public function __construct(int $amount, string $currency) |
||
18 | { |
||
19 | $this->amount = $amount; |
||
20 | $this->currency = $currency; |
||
21 | } |
||
22 | |||
23 | public function amount(): int |
||
26 | } |
||
27 | |||
28 | public function currency(): string |
||
33 |