Completed
Push — master ( 9bcebd...3fadc2 )
by Dmitry
04:15
created

XEditable   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setValue() 0 7 1
A getSearchSelector() 0 4 1
A getFilterSelector() 0 4 1
1
<?php
2
3
namespace hipanel\tests\_support\Page\Widget\Input;
4
5
/**
6
 * Class XEditable
7
 *
8
 * Represent XEditable input element.
9
 * @package hipanel\tests\_support\Page\Widget\Input
10
 */
11
class XEditable extends TestableInput
12
{
13
    /**
14
     * @param string $value
15
     */
16
    public function setValue(string $value): void
17
    {
18
        $this->tester->click("$this->selector a.editable");
19
        (new Input($this->tester, "$this->selector div.editable-input input"))
20
            ->setValue($value);
21
        $this->tester->click("$this->selector button[type=submit]");
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    protected function getSearchSelector(): string
28
    {
29
        // TODO: Implement getSearchSelector() method.
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    protected function getFilterSelector(): string
36
    {
37
        // TODO: Implement getFilterSelector() method.
38
    }
39
}
40
41