src/Validator/Chain.php
public function getChain(bool $includeOptions = true): string
    {
        $chain = [];
        foreach ($this->chain as $validatorName => $validatorObj) {
            if ($includeOptions === true) {
                $options = [];
                $tmpOptions = $validatorObj->getOptions();
                foreach ($tmpOptions as $optionName => $optionVal) {
                    $options[] = \sprintf('\'%s\'=>%s', $optionName, $this->parseOptionValue($optionVal));
                }
                $chain[] = \sprintf('%s [%s]', $validatorName, \implode(', ', $options));
            } else {
                $chain[] = $validatorName;
            }
        }
        return \implode(",\n", $chain);
    }
public function getChain(bool $includeOptions = true): string
    {
        $chain = [];
        foreach ($this->chain as $validatorName => $validatorObj) {
            if ($includeOptions === true) {
                $options = [];
                $tmpOptions = $validatorObj->getOptions();
                foreach ($tmpOptions as $optionName => $optionVal) {
                    $options[] = \sprintf('\'%s\'=>%s', $optionName, $this->parseOptionValue($optionVal));
                }
                $chain[] = \sprintf('%s [%s]', $validatorName, \implode(', ', $options));
            } else {
                $chain[] = $validatorName;
            }
        }
        return \implode(",\n", $chain);
    }
public function getChain ( bool $ includeOptions = true ) : string { $ chain = [ ] ; foreach ( $ this -> chain as $ validatorName => $ validatorObj ) { if ( $ includeOptions === true ) { $ options = [ ] ; $ tmpOptions = $ validatorObj -> getOptions ( ) ; foreach ( $ tmpOptions as $ optionName => $ optionVal ) { $ options [ ] = \ sprintf ( '\'%s\'=>%s' , $ optionName , $ this -> parseOptionValue ( $ optionVal ) ) ; } $ chain [ ] = \ sprintf ( '%s [%s]' , $ validatorName , \ implode ( ', ' , $ options ) ) ; } else { $ chain [ ] = $ validatorName ; } } return \ implode ( ",\n" , $ chain ) ; }
Returns validation chain

@param bool $includeOptions
@return string
Returns validation chain