SentEmailType::getBlockPrefix()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace  Azine\EmailBundle\Form;
4
5
use Symfony\Component\Form\AbstractType;
6
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
7
use Symfony\Component\Form\Extension\Core\Type\TextType;
8
use Symfony\Component\Form\FormBuilderInterface;
9
10
class SentEmailType extends AbstractType
11
{
12
    /**
13
     * @param FormBuilderInterface $builder
14
     * @param array                $options
15
     */
16
    public function buildForm(FormBuilderInterface $builder, array $options)
17
    {
18
        $builder->setMethod('GET');
19
        $builder->add('recipients', TextType::class, array('label' => false, 'required' => false));
20
        $builder->add('template', TextType::class, array('label' => false, 'required' => false));
21
        $builder->add('sent', TextType::class, array('label' => false, 'required' => false));
22
        $builder->add('variables', TextType::class, array('label' => false, 'required' => false));
23
        $builder->add('token', TextType::class, array('label' => false, 'required' => false));
24
25
        $builder->add('filter', SubmitType::class, array('label' => 'email.dashboard.filter.button.label', 'attr' => array('class' => 'button')));
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getBlockPrefix()
32
    {
33
        return 'sentEmail';
34
    }
35
}
36