ListFilterBaseFieldset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 14
dl 0
loc 26
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A init() 0 19 1
1
<?php
2
/**
3
 * YAWIK
4
 *
5
 * @filesource
6
 * @copyright https://yawik.org/COPYRIGHT.php
7
 * @license   MIT
8
 */
9
10
/** ListFilterBaseFieldset.php */
11
namespace Jobs\Form;
12
13
use Jobs\Entity\Status;
14
use Laminas\Form\Fieldset;
15
16
/**
17
 * Defines the formular fields of the job opening search formular. The ListFilterBaseFieldset contains the fulltext
18
 * search
19
 *
20
 * @package Jobs\Form
21
 */
22
class ListFilterBaseFieldset extends Fieldset
23
{
24 2
    public function __construct()
25
    {
26 2
        parent::__construct();
27
    }
28
29 2
    public function init()
30
    {
31 2
        $this->setName('params');
32
33 2
        $this->add(
34
            array(
35 2
            'type' => 'Hidden',
36
            'name' => 'page',
37
            'attributes' => array(
38
                'value' => 1,
39
            )
40
            )
41
        );
42
43 2
        $this->add(
44
            array(
45 2
            'name' => 'search',
46
            'options' => array(
47
                'label' => /*@translate*/ 'Job title',
48
            ),
49
            )
50
        );
51
    }
52
}
53