*/ protected $attributes = [ 'type' => 'radio', ]; /** * Get validator */ protected function getValidator(): ?ValidatorInterface { if (null === $this->validator && ! $this->disableInArrayValidator()) { $this->validator = new InArrayValidator([ 'haystack' => $this->getValueOptionsValues(), 'strict' => false, ]); } return $this->validator; } }