item = $item; $this->callItemId = $callItemId; } /** * @param array $data * @return static */ public static function createFromArray(array $data) { return new static($data['deliveryResultIdentifier'], $data['test'], unserialize($data['variable']), $data['item'], $data['callIdItem']); } /** * @return string */ public function getCallItemId() { return $this->callItemId; } /** * @return string */ public function getItemIdentifier() { return $this->item; } /** * @inheritdoc */ public function jsonSerialize() { return [ "deliveryResultIdentifier" => $this->deliveryResultIdentifier, "test" => $this->testIdentifier, "item" => $this->item, "variable" => serialize($this->variable), "callIdItem" => $this->callItemId, "uri" => $this->deliveryResultIdentifier . $this->callItemId, "callIdTest" => null, "class" => get_class($this->variable) ]; } }