value. * However, in case you want to calculate the value at runtime, * feel free to overwrite this getter method. * * @return int|float */ public function getValue() { return $this->value; } /** * @inheritdoc */ protected function validateIdentifierMore($identifier) { // Use regular expression to ensure the identifier consists only of letters if (preg_match('/^[a-zA-Z]+$/', $identifier) !== 1) { throw new InvalidIdentifierException('Error: Identifier must consist of letters'); } } }