Completed
Push — apply-codeceptions ( 341052...a29855 )
by Kentaro
53:23 queued 21:51
created

WaitAction   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A perform() 0 4 1
1
<?php
2
3
4
namespace Interactions;
5
6
7
use Facebook\WebDriver\WebDriverAction;
8
9
class WaitAction implements WebDriverAction
10
{
11
12
    /**
13
     * @var int $timeout_in_second
14
     */
15
    private $timeout_in_second;
16
17
    function __construct($timeout_in_second)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
18
    {
19
        $this->timeout_in_second = $timeout_in_second;
20
    }
21
22
    /**
23
     * @return void
24
     */
25
    public function perform()
26
    {
27
        sleep($this->timeout_in_second);
28
    }
29
}