1 | <?php |
||
8 | class DeleteViewModel extends ViewModel implements DeleteViewModelInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var EntityInterface |
||
12 | */ |
||
13 | private $entity; |
||
14 | |||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $errors; |
||
19 | |||
20 | /** |
||
21 | * @return EntityInterface |
||
22 | */ |
||
23 | public function getEntity() |
||
27 | |||
28 | /** |
||
29 | * @param EntityInterface $entity |
||
30 | */ |
||
31 | public function setEntity(EntityInterface $entity) |
||
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getErrors() |
||
43 | |||
44 | /** |
||
45 | * @param array $errors |
||
46 | */ |
||
47 | public function setErrors(array $errors) |
||
51 | } |
||
52 |