PagantisWebDriver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A wait() 0 6 1
1
<?php
2
3
namespace Test;
4
5
use Facebook\WebDriver\Remote\RemoteWebDriver;
6
use Facebook\WebDriver\WebDriverWait;
7
8
/**
9
 * Class PagantisWebDriver
10
 *
11
 * @package Test\Selenium
12
 */
13
class PagantisWebDriver extends RemoteWebDriver
14
{
15
    /**
16
     * Override method to increase the default timeouts
17
     *
18
     * @param int $timeout_in_second
19
     * @param int $interval_in_millisecond
20
     *
21
     * @return WebDriverWait
22
     */
23
    public function wait($timeout_in_second = 10, $interval_in_millisecond = 2000)
24
    {
25
        return new WebDriverWait(
26
            $this,
27
            $timeout_in_second,
28
            $interval_in_millisecond
29
        );
30
    }
31
}