| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | abstract class AbstractEvent |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var RepositoryInterface |
||
| 14 | */ |
||
| 15 | protected $repository; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Model |
||
| 19 | */ |
||
| 20 | protected $model; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * AbstractEvent constructor. |
||
| 24 | * |
||
| 25 | * @param RepositoryInterface $repository |
||
| 26 | 5 | * @param Model $model |
|
| 27 | */ |
||
| 28 | 5 | public function __construct(RepositoryInterface $repository, Model $model) |
|
| 29 | 5 | { |
|
| 30 | 5 | $this->repository = $repository; |
|
| 31 | $this->model = $model; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return RepositoryInterface |
||
| 36 | */ |
||
| 37 | public function getRepository(): RepositoryInterface |
||
| 38 | { |
||
| 39 | return $this->repository; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return Model |
||
| 44 | */ |
||
| 45 | public function getModel(): Model |
||
| 48 | } |
||
| 49 | } |
||
| 50 |