@@ 8-72 (lines=65) @@ | ||
5 | use Zend\View\Model\ViewModel; |
|
6 | use T4webDomainInterface\EntityInterface; |
|
7 | ||
8 | class CreateViewModel extends ViewModel implements CreateViewModelInterface |
|
9 | { |
|
10 | /** |
|
11 | * @var EntityInterface |
|
12 | */ |
|
13 | private $entity; |
|
14 | ||
15 | /** |
|
16 | * @var array |
|
17 | */ |
|
18 | private $errors; |
|
19 | ||
20 | /** |
|
21 | * @var array |
|
22 | */ |
|
23 | private $inputData; |
|
24 | ||
25 | /** |
|
26 | * @return EntityInterface |
|
27 | */ |
|
28 | public function getEntity() |
|
29 | { |
|
30 | return $this->entity; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param EntityInterface $entity |
|
35 | */ |
|
36 | public function setEntity(EntityInterface $entity) |
|
37 | { |
|
38 | $this->entity = $entity; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @return array |
|
43 | */ |
|
44 | public function getErrors() |
|
45 | { |
|
46 | return $this->errors; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param array $errors |
|
51 | */ |
|
52 | public function setErrors(array $errors) |
|
53 | { |
|
54 | $this->errors = $errors; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return array |
|
59 | */ |
|
60 | public function getInputData() |
|
61 | { |
|
62 | return $this->inputData; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @param array $inputData |
|
67 | */ |
|
68 | public function setInputData(array $inputData) |
|
69 | { |
|
70 | $this->inputData = $inputData; |
|
71 | } |
|
72 | } |
|
73 |
@@ 8-72 (lines=65) @@ | ||
5 | use Zend\View\Model\ViewModel; |
|
6 | use T4webDomainInterface\EntityInterface; |
|
7 | ||
8 | class UpdateViewModel extends ViewModel implements UpdateViewModelInterface |
|
9 | { |
|
10 | /** |
|
11 | * @var EntityInterface |
|
12 | */ |
|
13 | private $entity; |
|
14 | ||
15 | /** |
|
16 | * @var array |
|
17 | */ |
|
18 | private $errors; |
|
19 | ||
20 | /** |
|
21 | * @var array |
|
22 | */ |
|
23 | private $inputData; |
|
24 | ||
25 | /** |
|
26 | * @return EntityInterface |
|
27 | */ |
|
28 | public function getEntity() |
|
29 | { |
|
30 | return $this->entity; |
|
31 | } |
|
32 | ||
33 | /** |
|
34 | * @param EntityInterface $entity |
|
35 | */ |
|
36 | public function setEntity(EntityInterface $entity) |
|
37 | { |
|
38 | $this->entity = $entity; |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @return array |
|
43 | */ |
|
44 | public function getErrors() |
|
45 | { |
|
46 | return $this->errors; |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param array $errors |
|
51 | */ |
|
52 | public function setErrors(array $errors) |
|
53 | { |
|
54 | $this->errors = $errors; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return array |
|
59 | */ |
|
60 | public function getInputData() |
|
61 | { |
|
62 | return $this->inputData; |
|
63 | } |
|
64 | ||
65 | /** |
|
66 | * @param array $inputData |
|
67 | */ |
|
68 | public function setInputData(array $inputData) |
|
69 | { |
|
70 | $this->inputData = $inputData; |
|
71 | } |
|
72 | } |
|
73 |