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