ManageTicket   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A init() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ConferenceTools\Tickets\Form;
6
7
use ConferenceTools\Tickets\Form\Fieldset\DelegateInformation;
8
use Zend\Form\Element\Csrf;
9
use Zend\Form\Form;
10
11
final class ManageTicket extends Form
12
{
13
    public function __construct()
14
    {
15
        parent::__construct('manage-ticket-form');
16
    }
17
18
    public function init()
19
    {
20
        $this->add([
21
            'type' => DelegateInformation::class,
22
            'name' => 'delegate',
23
        ]);
24
25
        $this->add([
26
            'type' => Csrf::class,
27
            'name' => 'security',
28
        ]);
29
    }
30
}
31