Completed
Pull Request — master (#44)
by Dmitry
04:42
created

TestableInput   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 24
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
isVisible() 0 1 ?
1
<?php
2
3
namespace hipanel\tests\_support\Page\Widget\Input;
4
5
use hipanel\tests\_support\AcceptanceTester;
6
7
abstract class TestableInput
8
{
9
    /**
10
     * @var string $name
11
     */
12
    protected $name;
13
14
    /**
15
     * TestableInput constructor.
16
     * @param string $name
17
     */
18
    public function __construct($name)
19
    {
20
        $this->name = $name;
21
    }
22
23
    /**
24
     * Checks whether input is visible
25
     *
26
     * @param AcceptanceTester $I
27
     * @param string $formId
28
     */
29
    abstract public function isVisible(AcceptanceTester $I, string $formId): void;
30
}
31