Textarea::setValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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