<?php
namespace App\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;
class ShareType extends AbstractType
{
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'choices' => [
'Дольовик' => 'share-dolovuk',
'Співвласник баг.кв.буд.' => 'share-spivvlasnuk',
'Інститут Грунтів' => 'share-state-org',
'ІВО-ком' => 'share-ivo-com',
'Кокес' => 'share-kokes',
'Працівник' => 'share-wage',
'Співвласник баг.кв.буд.' => 'share-spivvlasnuk',
'Родина' => 'share-roduna',
'Орендар Кв.' => 'share-rent',
'Лекс Конс. ' => 'share-leks-kons',
'Гість' => 'share-guest',
],
]);
}
public function getParent(): string
{
return ChoiceType::class;
}
}