src/Jsonq.php
public function pipe(callable $fn, $class = null)
    {
        $this->prepare();

        if (is_string($fn) && !is_null($class)) {
            $instance = new $class;

            $this->_map = call_user_func_array([$instance, $fn], [$this]);
            return $this;
        }

        $this->_map = $fn($this);
        return $this;
    }
public function pipe(callable $fn, $class = null)
    {
        $this->prepare();

        if (is_string($fn) && !is_null($class)) {
            $instance = new $class;

            $this->_map = call_user_func_array([$instance, $fn], [$this]);
            return $this;
        }

        $this->_map = $fn($this);
        return $this;
    }
public function pipe ( callable $ fn , $ class = null ) { $ this -> prepare ( ) ; if ( is_string ( $ fn ) && ! is_null ( $ class ) ) { $ instance = new $ class ; $ this -> _map = call_user_func_array ( [ $ instance , $ fn ] , [ $ this ] ) ; return $ this ; } $ this -> _map = $ fn ( $ this ) ; return $ this ; }
pipe send output in next pipe

@param callable $fn
@param string|null $class
@return object|array
@throws ConditionNotAllowedException
pipe send output in next pipe