SentEmailType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 6
Bugs 1 Features 0
Metric Value
eloc 9
c 6
b 1
f 0
dl 0
loc 24
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A buildForm() 0 10 1
A getBlockPrefix() 0 3 1
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