Completed
Pull Request — master (#189)
by Kevin
02:15
created

ByIdTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getElement() 0 5 1
1
<?php
2
3
namespace Magium\Actions;
4
5
use Magium\WebDriver\WebDriver;
6
7
trait ByIdTrait
8
{
9
10
    /**
11
     * @param WebDriver $webDriver
12
     * @param $selector
13
     * @return \Facebook\WebDriver\Remote\RemoteWebElement|null
14
     */
15
16
    protected function getElement(WebDriver $webDriver, $selector)
17
    {
18
        $element = $webDriver->byId($selector);
19
        return $element;
20
    }
21
22
}
23