Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | final class Activity |
||
9 | { |
||
10 | private $type; |
||
11 | private $data; |
||
12 | |||
13 | 42 | public function __construct(Type $type, array $data) |
|
14 | { |
||
15 | 42 | $this->type = $type; |
|
16 | 42 | $this->data = $data; |
|
17 | 42 | } |
|
18 | |||
19 | 32 | public function is(Type $type): bool |
|
22 | } |
||
23 | |||
24 | 4 | public function type(): Type |
|
25 | { |
||
26 | 4 | return $this->type; |
|
27 | } |
||
28 | |||
29 | 6 | public function data(): array |
|
32 | } |
||
33 | } |
||
34 |