Serialize the payload for this feedback

@return mixed
17543
public function serializePayload(ControllerContext $controllerContext)
    {
        return [
            'name' => $this->getWorkspace()->getName(),
            'publishableNodes' => $this->workspaceService->getPublishableNodeInfo(
                $this->getWorkspace()
            ),
            'baseWorkspace' => $this->getWorkspace()->getBaseWorkspace()->getName()
        ];
    }
993417
public function serialize()
    {
        return serialize(array($this->message, $this->code, $this->file, $this->line));
    }
570545
public function serialize()
    {
        return serialize(array(
            'records' => serialize($this->records),
            'done' => $this->done,
            'queryLocator' => serialize($this->queryLocator),
            'size' => $this->size
        ));
    }
1242771
public function serialize()
    {
        if ($this->manager) {
            return serialize([
                'pageId' => $this->getPage()->getId(),
                'snapshotId' => $this->snapshot->getId(),
            ]);
        }

        return serialize([]);
    }
1194247
public function serializeToJsonString()
    {
        $output = new CodedOutputStream($this->jsonByteSize());
        $this->serializeToJsonStream($output);
        return $output->getData();
    }
890469
public function serialize()
	{
		// Load all of the inputs.
		$this->loadAllInputs();

		// Remove $_ENV and $_SERVER from the inputs.
		$inputs = $this->inputs;
		unset($inputs['env'], $inputs['server']);

		// Serialize the options, data, and inputs.
		return serialize(array($this->options, $this->data, $inputs));
	}
770501
public function serialize()
    {
        $data = array(
            // Serialized data ID.
            self::VERSION,
            $this->_headers->getArrayCopy(),
            // TODO: BC
            $this->_eol
        );

        return serialize($data);
    }
1043555
public function serialize(){

		@mysqli_close($this->_connection);

		$data = [
			$this->_server,
			$this->_username,
			$this->_password,
			$this->_database
		];

		return serialize($data);
	}
95772
public function serialize()
    {

        @\pg_close($this->_connection);

        $data = [
            $this->_server,
            $this->_username,
            $this->_password,
            $this->_database,
            $this->_port,
        ];

        return serialize($data);
    }
1068583
public function serialize()
    {
        $data = array();

        $private_properties = array(
            'row_wrapper_class',
            'index_field',
            'objects',
            'objects_by_index',
            'options'
        );

        foreach ($private_properties as $property) {
            $data[$property] = $this->$property;
        }

        return serialize($data);
    }
490183
public function serialize()
	{
		$data = $this->_data;

		$data['_is_new'] = $this->_is_new;
		$data['_is_frozen'] = $this->_is_frozen;

		return serialize($data);
	}
147814
public function serialize()
    {
        $data['_type']       = $this->_type;
        $data['_domain']     = $this->_domain;
        $data['_package']    = $this->_package;
        $data['_path']       = $this->_path;
        $data['_name']       = $this->_name;
        $data['_identifier'] = $this->_identifier;
        $data['__config']    = $this->__config;

        return serialize($data);
    }
413218
public function serialize() {
        $data = array();
        foreach (get_object_vars($this) as $name => $value) {
            if (! $this->filterRequestNames($name)) {
                $data[$name] = $value;
            }
        }
        return serialize($data);
    }
1215255
public function serialize()
    {
        $frame = $this->frame;
        if (!empty($this->comments)) {
            $frame['_comments'] = $this->comments;
        }

        return serialize($frame);
    }
748350
public function serialize()
    {
        return serialize(array(
            'credentials'   => $this->credentials,
            'loginResult'   => $this->loginResult,
            'debug'         => $this->debug,
            'lastLoginTime' => $this->lastLoginTime,
            '__parentData'  => parent::serialize()
        ));
    }
191663
public function serialize(): string {
        $data['check']          = $this->check;
        $data['base']           = $this->base;
        $data['index']          = $this->index;
        $data['fail_states']    = $this->fail_states;
        $data['index_count']    = $this->index_count;
        $data['index_code']     = $this->index_code;
        $data['tmp_tree']       = $this->tmp_tree;
        $data['word_states']    = $this->word_states;
        $data['begin_used']     = $this->begin_used;
        return msgpack_pack($data);
    }
907597
final public function serialize(): string
    {
        $vars = array_filter(get_object_vars($this));
        $vars['adviceMethod'] = static::serializeAdvice($this->adviceMethod);

        return serialize($vars);
    }