src/Application/Internit/LeadBundle/Form/realStatePercentCollectionType.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Application\Internit\LeadBundle\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. //use Internit\SecurityBundle\Entity\Resource;
  5. use Symfony\Component\Form\FormBuilder;
  6. use Symfony\Component\Form\FormBuilderInterface;
  7. use Symfony\Component\OptionsResolver\OptionsResolverInterface;
  8. use Symfony\Component\OptionsResolver\OptionsResolver;
  9. use Symfony\Component\Form\Extension\Core\Type\TextType;
  10. use App\Application\Internit\LeadBundle\Entity\realStatePercent;
  11. class realStatePercentCollectionType extends AbstractType
  12. {
  13.     public function buildForm(FormBuilderInterface $builder, array $options)
  14.     {
  15.         $builder->add('percent'TextType::class, [
  16.             'label' => 'porcentagem',
  17.         ]);
  18.     }
  19.     public function configureOptions(OptionsResolver $resolver)
  20.     {
  21.         $resolver->setDefaults([
  22.             'data_class' => realStatePercent::class,
  23.         ]);
  24.     }
  25.     public function setDefaultOptions(OptionsResolverInterface $resolver)
  26.     {
  27.     }
  28.     public function getName()
  29.     {
  30.         return 'realStatePercentCollectionType';
  31.     }
  32. }