Passed
Push — master ( 8257d1...c541cb )
by Chris
34s
created

ManageTicket::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace OpenTickets\Tickets\Form;
6
7
use OpenTickets\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