1 | <?php |
||
8 | class AdapterField implements WebField { |
||
9 | |||
10 | /** @var WebField */ |
||
11 | private $field; |
||
12 | |||
13 | /** @var callable */ |
||
14 | private $handles; |
||
15 | |||
16 | /** @var callable */ |
||
17 | private $afterInflate; |
||
18 | |||
19 | /** @var callable */ |
||
20 | private $beforeRender; |
||
21 | |||
22 | /** @var callable */ |
||
23 | private $afterHeadElements; |
||
24 | |||
25 | /** @var callable */ |
||
26 | private $transformParameter; |
||
27 | |||
28 | /** |
||
29 | * @param WebField $field |
||
30 | */ |
||
31 | public function __construct(WebField $field) { |
||
50 | |||
51 | /** |
||
52 | * @param Parameter $parameter |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function handles(Parameter $parameter) { |
||
58 | |||
59 | /** |
||
60 | * @param Parameter $parameter |
||
61 | * @param string $serialized |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function inflate(Parameter $parameter, $serialized) { |
||
70 | |||
71 | /** |
||
72 | * @param Parameter $parameter |
||
73 | * @param string $value |
||
74 | * @return string |
||
75 | */ |
||
76 | public function render(Parameter $parameter, $value) { |
||
82 | |||
83 | /** |
||
84 | * @param Parameter $parameter |
||
85 | * @return array|Element[] |
||
86 | */ |
||
87 | public function headElements(Parameter $parameter) { |
||
93 | |||
94 | /** |
||
95 | * @param callable $handles |
||
96 | * @return AdapterField |
||
97 | */ |
||
98 | public function setHandles($handles) { |
||
102 | |||
103 | /** |
||
104 | * @param string $name |
||
105 | * @return static |
||
106 | */ |
||
107 | public function setHandlesParameterName($name) { |
||
113 | |||
114 | /** |
||
115 | * @param callable $afterInflate |
||
116 | * @return AdapterField |
||
117 | */ |
||
118 | public function setAfterInflate($afterInflate) { |
||
122 | |||
123 | /** |
||
124 | * @param callable $beforeRender |
||
125 | * @return AdapterField |
||
126 | */ |
||
127 | public function setBeforeRender($beforeRender) { |
||
131 | |||
132 | /** |
||
133 | * @param callable $transformParameter |
||
134 | * @return AdapterField |
||
135 | */ |
||
136 | public function setTransformParameter($transformParameter) { |
||
140 | |||
141 | /** |
||
142 | * @param callable $afterHeadElements |
||
143 | * @return AdapterField |
||
144 | */ |
||
145 | public function setAfterHeadElements($afterHeadElements) { |
||
149 | } |