src/validator/OperatorValidator.class.php 1 location
|
@@ 163-170 (lines=8) @@
|
| 160 |
|
* @author Dominik del Bondio <[email protected]> |
| 161 |
|
* @since 0.11.0 |
| 162 |
|
*/ |
| 163 |
|
public function getChild($name) |
| 164 |
|
{ |
| 165 |
|
if (!isset($this->children[$name])) { |
| 166 |
|
throw new \InvalidArgumentException('A validator with the name "' . $name . '" does not exist'); |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
return $this->children[$name]; |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
/** |
| 173 |
|
* Returns all child validators. |
src/validator/ValidationManager.class.php 1 location
|
@@ 207-214 (lines=8) @@
|
| 204 |
|
* @author Dominik del Bondio <[email protected]> |
| 205 |
|
* @since 0.11.0 |
| 206 |
|
*/ |
| 207 |
|
public function getChild($name) |
| 208 |
|
{ |
| 209 |
|
if (!isset($this->children[$name])) { |
| 210 |
|
throw new \InvalidArgumentException('A validator with the name "' . $name . '" does not exist'); |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
return $this->children[$name]; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* Returns all child validators. |