SearchForm   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
1
<?php
2
3
namespace ConferenceTools\Checkin\Form;
4
5
use Zend\Form\Element\Submit;
6
use Zend\Form\Element\Text;
7
use Zend\Form\Form;
8
9
class SearchForm extends Form
10
{
11
    public function init()
12
    {
13
        parent::init(); // TODO: Change the autogenerated stub
14
        $this->add(new Text('firstName', ['label' => 'First name']));
15
        $this->add(new Text('lastName', ['label' => 'Last name']));
16
        $this->add(new Text('email', ['label' => 'Email']));
17
        $this->add(new Text('ticketId', ['label' => 'Ticket Id']));
18
        $this->add(new Submit('submit', ['label' => 'Search']));
19
    }
20
}