ManageTicket::__construct()   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
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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