Textarea   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSearchSelector() 0 4 1
A getFilterSelector() 0 4 1
A setValue() 0 4 1
1
<?php
2
/**
3
 * HiPanel core package
4
 *
5
 * @link      https://hipanel.com/
6
 * @package   hipanel-core
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\tests\_support\Page\Widget\Input;
12
13
/**
14
 * Class Textarea.
15
 *
16
 * Represent textarea input element.
17
 */
18
class Textarea extends TestableInput
19
{
20
    /**
21
     * @return string
22
     */
23
    protected function getSearchSelector(): string
24
    {
25
        return self::AS_BASE . "div[data-title='{$this->title}']>textarea";
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    protected function getFilterSelector(): string
32
    {
33
        // TODO: Implement getFilterSelector() method.
34
    }
35
36
    /**
37
     * @param string $value
38
     */
39
    public function setValue(string $value): void
40
    {
41
        $this->tester->fillField($this->selector, $value);
42
    }
43
}
44