public function setOutput($output, ? string $wrapper = null)
    {
        if ($wrapper) {
            $this->setOutputWrapper($wrapper);
        }

        return tap($this, function ($instance) use ($output) {
            $instance->output = $output;
        });
    }
public function setOutput($output, ? string $wrapper = null)
    {
        if ($wrapper) {
            $this->setOutputWrapper($wrapper);
        }

        return tap($this, function ($instance) use ($output) {
            $instance->output = $output;
        });
    }
public function setOutput ( $ output , ? string $ wrapper = null ) { if ( $ wrapper ) { $ this -> setOutputWrapper ( $ wrapper ) ; } return tap ( $ this , function ( $ instance ) use ( $ output ) { $ instance -> output = $ output ; } ) ; }
Set the Payload output.

@param  mixed  $output
@param  string|null  $wrapper

@return $this
Set the Payload output .