Type::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Magium\Actions;
4
5
use Magium\WebDriver\WebDriver;
6
7
class Type implements ConfigurableActionInterface
8
{
9
10
    const ACTION = 'Type';
11
12
    protected $webDriver;
13
14
    public function __construct(
15
        WebDriver $webDriver
16
    )
17
    {
18
        $this->webDriver = $webDriver;
19
    }
20
21
    public function execute($param)
22
    {
23
        $this->webDriver->getKeyboard()->sendKeys($param);
24
    }
25
26
}
27