| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Validator extends Particle\Validator { |
||
| 8 | /** |
||
| 9 | * @param string $key |
||
| 10 | * @param null $name |
||
|
|
|||
| 11 | * @param bool $allowEmpty |
||
| 12 | * @return Chain |
||
| 13 | */ |
||
| 14 | 8 | public function required($key, $name = null, $allowEmpty = false) { |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $key |
||
| 22 | * @param null $name |
||
| 23 | * @param bool $allowEmpty |
||
| 24 | * @return Chain |
||
| 25 | */ |
||
| 26 | 2 | public function optional($key, $name = null, $allowEmpty = true) { |
|
| 27 | /** @var Chain $chain */ |
||
| 28 | 2 | $chain = parent::optional($key, $name, $allowEmpty); |
|
| 29 | 2 | return $chain; |
|
| 30 | } |
||
| 31 | |||
| 32 | 10 | protected function buildChain($key, $name, $required, $allowEmpty) { |
|
| 34 | } |
||
| 35 | } |