Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Round |
||
8 | { |
||
9 | private $minutes; |
||
10 | private $round; |
||
11 | |||
12 | public static function fromArray(array $data): self |
||
13 | { |
||
14 | return new self( |
||
15 | $data['minutes'], |
||
16 | $data['round'] |
||
17 | ); |
||
18 | } |
||
19 | |||
20 | public function __construct(string $minutes, string $round) |
||
24 | } |
||
25 | |||
26 | public function minutes(): string |
||
27 | { |
||
28 | return $this->minutes; |
||
29 | } |
||
30 | |||
31 | public function round(): string |
||
34 | } |
||
35 | } |
||
36 |