| @@ 133-140 (lines=8) @@ | ||
| 130 | * |
|
| 131 | * @return mixed |
|
| 132 | */ |
|
| 133 | public function extractValue($name, $value) |
|
| 134 | { |
|
| 135 | if ($this->hasStrategy($name)) { |
|
| 136 | $strategy = $this->getStrategy($name); |
|
| 137 | $value = $strategy->extract($value); |
|
| 138 | } |
|
| 139 | ||
| 140 | return $value; |
|
| 141 | } |
|
| 142 | ||
| 143 | /** |
|
| @@ 151-158 (lines=8) @@ | ||
| 148 | * |
|
| 149 | * @return mixed |
|
| 150 | */ |
|
| 151 | public function hydrateValue($name, $value) |
|
| 152 | { |
|
| 153 | if ($this->hasStrategy($name)) { |
|
| 154 | $strategy = $this->getStrategy($name); |
|
| 155 | $value = $strategy->hydrate($value); |
|
| 156 | } |
|
| 157 | ||
| 158 | return $value; |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|