| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | abstract class AbstractEvent extends BaseEvent { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Event name. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $eventName; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor. |
||
| 34 | * |
||
| 35 | * @param string $eventName The event name. |
||
| 36 | */ |
||
| 37 | 100 | protected function __construct(string $eventName) { |
|
| 38 | 100 | $this->setEventName($eventName); |
|
| 39 | 100 | } |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Get the event name. |
||
| 43 | * |
||
| 44 | * @return string Returns the event name. |
||
| 45 | */ |
||
| 46 | 50 | public function getEventName(): string { |
|
| 47 | 50 | return $this->eventName; |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Set the event name. |
||
| 52 | * |
||
| 53 | * @param string $eventName The event name. |
||
| 54 | * @return AbstractEvent Returns this event. |
||
| 55 | */ |
||
| 56 | 100 | protected function setEventName(string $eventName): AbstractEvent { |
|
| 59 | } |
||
| 60 | } |
||
| 61 |