| Total Complexity | 4 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class EventAbstract implements EventInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The name of the resource publishing this event |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $resourceName; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The name of this event |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $eventName; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Any data associated with this event |
||
| 23 | * @var mixed |
||
| 24 | */ |
||
| 25 | protected $datas; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $resourceName name of the publisher |
||
| 29 | * @param string $eventName name of the event |
||
| 30 | * @param mixed $data [OPTIONAL] Additional event data |
||
| 31 | */ |
||
| 32 | 4 | public function __construct( |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * return the name of the event |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 1 | public function getEventName(): string |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * return the name of the resource |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | 1 | public function getResourceName(): string |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * return datas |
||
| 64 | * |
||
| 65 | * @return mixed |
||
| 66 | */ |
||
| 67 | 1 | public function getDatas() |
|
| 72 |