protected function isValid($value) { if (preg_match(self::PATTERN_VALIDCHARACTERS, $value) === 0) { $this->addError('Only letters, numbers, spaces and certain punctuation marks are expected.', 1272298003); } }