| 1 | <?php |
||
| 19 | abstract class RepositoryEventBase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Model |
||
| 23 | */ |
||
| 24 | protected $model; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Repository |
||
| 28 | */ |
||
| 29 | protected $repository; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $action; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param Repository $repository |
||
| 38 | * @param Model $model |
||
| 39 | */ |
||
| 40 | public function __construct(Repository $repository, Model $model) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return Model |
||
| 48 | */ |
||
| 49 | public function getModel() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Repository |
||
| 56 | */ |
||
| 57 | public function getRepository() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function getAction() |
||
| 69 | } |
||
| 70 |