public function ifTrue(\Closure $closure = null)
    {
        if (null === $closure) {
            $closure = function ($v) { return true === $v; };
        }

        $this->ifPart = $closure;

        return $this;
    }
public function ifTrue(\Closure $closure = null)
    {
        if (null === $closure) {
            $closure = function ($v) { return true === $v; };
        }

        $this->ifPart = $closure;

        return $this;
    }
public function ifTrue ( \ Closure $ closure = null ) { if ( null === $ closure ) { $ closure = function ( $ v ) { return true === $ v ; } ; } $ this -> ifPart = $ closure ; return $ this ; }
Sets a closure to use as tests.

The default one tests if the value is true.

@return $this
Sets a closure to use as tests .