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

SearchForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 10
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
}