Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
8 / 8 |
| TasktodoType | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
8 / 8 |
| buildForm | |
100.00% |
1 / 1 |
1 | |
100.00% |
5 / 5 |
|||
| configureOptions | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| <?php | |
| namespace App\Form; | |
| use App\Entity\Tasktodo; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\OptionsResolver\OptionsResolver; | |
| use Symfony\Component\Form\Extension\Core\Type\TextType; | |
| use Symfony\Component\Form\Extension\Core\Type\TextareaType; | |
| class TasktodoType extends AbstractType | |
| { | |
| public function buildForm(FormBuilderInterface $builder, array $options) | |
| { | |
| $builder | |
| ->add('title', TextType::class, [ | |
| 'label' => ' ', | |
| 'attr' => [ | |
| 'placeholder' => 'TITRE' | |
| ] | |
| ]) | |
| ->add('content', TextareaType::class, [ | |
| 'label' => ' ', | |
| 'attr' => [ | |
| 'placeholder' => 'CONTENU' | |
| ] | |
| ]) | |
| ; | |
| } | |
| public function configureOptions(OptionsResolver $resolver) | |
| { | |
| $resolver->setDefaults([ | |
| 'data_class' => Tasktodo::class, | |
| ]); | |
| } | |
| } |