| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class FootballEvent implements EventInterface |
||
| 13 | { |
||
| 14 | const GOAL = 'Goal!!!'; |
||
| 15 | const MISS = 'missing a ball((('; |
||
| 16 | const VIOLATION = 'getting a yellow card'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $eventName; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * FootballEvent constructor. |
||
| 25 | * @param string $eventName |
||
| 26 | */ |
||
| 27 | public function __construct(string $eventName) |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getEventName(): string |
||
| 40 |