Lines 100.00% 9 / 9
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 buildForm 100.00% 9 / 9 100.00% 1 / 1 1
15class ProfileVisibilityType extends AbstractType
16{
17    public function buildForm(FormBuilderInterface $builder, array $options): void
18    {
19        $builder->add('visibleParts', EnumType::class, [
20            'class' => ProfilePart::class,
21            'multiple' => true,
22            'expanded' => true,
23            'required' => false,
24            'label' => 'profile.visibility.label',
25            'choice_label' => static fn (ProfilePart $part): string => $part->label(),
26            'help' => 'profile.visibility.help',
27        ]);
28    }
29}