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