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

ManageTicket   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 20
rs 10
c 1
b 0
f 1
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A init() 0 12 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