description = (string) $description; } public function check(): void { $maxLen = 1000; if (mb_strlen($this->description) > $maxLen) { throw new Exception(Piwik::translate('CustomDimensions_DescriptionIsTooLong', $maxLen)); } if (strip_tags($this->description) !== $this->description) { throw new Exception(Piwik::translate('CustomDimensions_DescriptionAllowedCharacters')); } } }