type = $type; if (\is_string($value)) { $this->valueStr = $value; } elseif (\is_int($value)) { $this->valueInt = $value; } elseif (\is_float($value)) { $this->valueDec = $value; } elseif ($value instanceof \DateTimeInterface) { $this->valueDat = $value; } $this->language = $language; } /** * Get id * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * {@inheritdoc} */ public function toArray() : array { return []; } /** * {@inheritdoc} */ public function jsonSerialize() { return $this->toArray(); } }