for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Logikos\Util\Config\Field\Adapter\Particle;
use Particle\Validator as Particle;
class Validator extends Particle\Validator {
/**
* @param string $key
* @param null $name
$name
null
* @param bool $allowEmpty
* @return Chain
*/
public function required($key, $name = null, $allowEmpty = false) {
/** @var Chain $chain */
$chain = parent::required($key, $name, $allowEmpty);
return $chain;
}
public function optional($key, $name = null, $allowEmpty = true) {
$chain = parent::optional($key, $name, $allowEmpty);
protected function buildChain($key, $name, $required, $allowEmpty) {
return new Chain($key, $name, $required, $allowEmpty);