protected function isValid($value) { if (!is_string($value)) { $this->addError('A valid string is expected.', 1238108070); } }