public function toArray()
    {
        $output = $this->outputWrapper || $this->messages ? $this->getwrappedOutput() : $this->output;

        return $this->messages ? array_merge($output, $this->messages) : $output;
    }
public function toArray()
    {
        $output = $this->outputWrapper || $this->messages ? $this->getwrappedOutput() : $this->output;

        return $this->messages ? array_merge($output, $this->messages) : $output;
    }
public function toArray ( ) { $ output = $ this -> outputWrapper || $ this -> messages ? $ this -> getwrappedOutput ( ) : $ this -> output ; return $ this -> messages ? array_merge ( $ output , $ this -> messages ) : $ output ; }
Convert the Payload instance to an array.

@return array
Convert the Payload instance to an array .