Jyxo\Input\Chain\Conditional::checkCondition PHP Method

checkCondition() private method

Checks if the condition is fulfilled.
private checkCondition ( mixed $value ) : boolean
$value mixed Input value
return boolean
    private function checkCondition($value) : bool
    {
        if (null === $this->condValidator) {
            // There is no validator -> always fulfilled
            return true;
        }
        return $this->condValidator->isValid($value);
    }