public function isValid($value) : bool { if (!preg_match('~^\\d{3} ?\\d{2}$~', (string) $value)) { return false; } return true; }