LightnCandy\Validator::doElseChain PHP Method

doElseChain() protected static method

handle else chain
protected static doElseChain ( array\arraystring | integer> &$context )
$context array\arraystring | integer>
    protected static function doElseChain(&$context)
    {
        if ($context['elsechain']) {
            $context['elsechain'] = false;
        } else {
            array_unshift($context['elselvl'], array());
        }
    }