Completed
Pull Request — develop (#27)
by Carlo
03:15
created

XpathId   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setId() 0 4 1
1
<?php
2
3
namespace Magefix\Behat\Page\Element;
4
5
/**
6
 * Class XpathId
7
 * @package Magefix\Behat\Page\Element
8
 * @author  Carlo Tasca <[email protected]>
9
 */
10
class XpathId extends Parameter
11
{
12
    /**
13
     * @var array
14
     */
15
    protected $selector = ['xpath' => '//*[@id="{parameter}"]'];
16
17
    /**
18
     * setParameter wrapper
19
     * 
20
     * @param $id
21
     */
22
    public function setId($id) 
23
    {
24
        $this->setParameter($id);
25
    }
26
}
27