| Total Complexity | 4 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | abstract class RepositoryEventBase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Model |
||
| 16 | */ |
||
| 17 | protected $model; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var RepositoryInterface |
||
| 21 | */ |
||
| 22 | protected $repository; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $action; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param RepositoryInterface $repository |
||
| 31 | * @param Model $model |
||
| 32 | */ |
||
| 33 | public function __construct(RepositoryInterface $repository, Model $model = null) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Model|array |
||
| 41 | */ |
||
| 42 | public function getModel() |
||
| 43 | { |
||
| 44 | return $this->model; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return RepositoryInterface |
||
| 49 | */ |
||
| 50 | public function getRepository() |
||
| 51 | { |
||
| 52 | return $this->repository; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getAction() |
||
| 61 | } |
||
| 62 | } |
||
| 63 |