public function check(string $name, ...$params)
    {
        if (!array_key_exists($name, $this->conditions)) {
            throw new \UnexpectedValueException("Unknown conditional: @{$name}");
        }

        $function = $this->conditions[$name];

        return $function(...$params);
    }
public function check(string $name, ...$params)
    {
        if (!array_key_exists($name, $this->conditions)) {
            throw new \UnexpectedValueException("Unknown conditional: @{$name}");
        }

        $function = $this->conditions[$name];

        return $function(...$params);
    }
public function check ( string $ name , ... $ params ) { if ( ! array_key_exists ( $ name , $ this -> conditions ) ) { throw new \ UnexpectedValueException ( "Unknown conditional: @{$name}" ) ; } $ function = $ this -> conditions [ $ name ] ; return $ function ( ... $ params ) ; }
Call a registered conditional directive.

@param string $name
@param mixed ...$params

@return mixed
Call a registered conditional directive .