1 | <?php |
||
20 | abstract class AbstractViewModel implements ViewModelInterface |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function getIterator() |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function offsetExists($offset) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function offsetGet($offset) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function offsetSet($offset, $value) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function offsetUnset($offset) |
||
69 | |||
70 | /** |
||
71 | * Register fields that should be viewed. |
||
72 | * |
||
73 | * @return array|null |
||
74 | */ |
||
75 | abstract protected function fields(); |
||
76 | |||
77 | /** |
||
78 | * Append custom fields. |
||
79 | * |
||
80 | * @return array|null |
||
81 | */ |
||
82 | abstract protected function append(); |
||
83 | |||
84 | /** |
||
85 | * Register hidden fields. |
||
86 | * |
||
87 | * @return array|null |
||
88 | */ |
||
89 | abstract protected function hidden(); |
||
90 | } |
||
91 |