Passed
Push — master ( 645913...ffdc3b )
by Chris
03:41
created

SearchForm::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 9.4285
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
}