public function extract(callable $callback = null)
    {

        if ($callback === null) {
            $result = $this->result->serialize();
        }
        else {
            $result = $callback($this->result->serialize());
        }

        return $result;

    }
public function extract(callable $callback = null)
    {

        if ($callback === null) {
            $result = $this->result->serialize();
        }
        else {
            $result = $callback($this->result->serialize());
        }

        return $result;

    }
public function extract ( callable $ callback = null ) { if ( $ callback === null ) { $ result = $ this -> result -> serialize ( ) ; } else { $ result = $ callback ( $ this -> result -> serialize ( ) ) ; } return $ result ; }
Extract result data to serialize string

@param  callback|null $callback function to data
@return array
Extract result data to serialize string