TextContains   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A add() 0 4 1
A getFilterAction() 0 3 1
1
<?php
2
3
namespace kalanis\kw_table\form_nette\Fields;
4
5
6
use kalanis\kw_connect\core\Interfaces\IFilterFactory;
7
8
9
/**
10
 * Class TextContains
11
 * @package kalanis\kw_table\form_nette\Fields
12
 */
13
class TextContains extends AField
14
{
15
    public function getFilterAction(): string
16
    {
17
        return IFilterFactory::ACTION_CONTAINS;
18
    }
19
20
    public function add(): void
21
    {
22
        $this->form->addText($this->alias);
23
        $this->processAttributes();
24
    }
25
}
26