values = $values; $this ->setDefault(self::DEFAULT_VALUE) ->setSaveType(ZBX_WIDGET_FIELD_TYPE_INT32) ->setValidationRules(['type' => API_INTS32]); } public function getValues(): array { return $this->values; } public function setValue($value): self { $this->value = (array) $value; return $this; } public function setDefault($value): self { $this->default = (array) $value; return $this; } }