Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function getXpath() |
||
31 | { |
||
32 | if (empty($this->parameter)) { |
||
33 | throw new \Exception("Parameter not set for element Xpath"); |
||
34 | } |
||
35 | |||
36 | $realXPath = str_replace('{parameter}', $this->parameter, $this->selector['xpath']); |
||
37 | $this->selector = ['xpath' => $realXPath]; |
||
38 | |||
39 | return $realXPath; |
||
40 | } |
||
41 | } |
||
42 |