setKey($genericKey); parent::__construct(...$value); } /** * Sets the generic qualifier key. * * @param string $genericKey The key. * * @return $this */ public function setKey($genericKey) { $this->genericKey = $genericKey; return $this; } /** * Gets qualifier full name. * * @return string */ public function getFullName() { return ArrayUtils::implodeFiltered('_', [parent::getFullName(), $this->genericKey]); } /** * Serializes to string. * * @return string */ public function __toString() { $value = ExpressionUtils::normalize((string)$this->value); return $value === '' ? '' : $this->genericKey . static::KEY_VALUE_DELIMITER . $value; } }