Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class BasicEvent implements EventInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * @param string $name |
||
21 | */ |
||
22 | 12 | public function __construct(string $name) |
|
23 | { |
||
24 | 12 | $this->name = $name; |
|
25 | 12 | } |
|
26 | |||
27 | /** |
||
28 | * @param BasicEvent $compare |
||
29 | * @return bool |
||
30 | */ |
||
31 | 7 | public function equals($compare): bool |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 7 | public function __toString(): string |
|
43 | } |
||
44 | } |