| Total Complexity | 9 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class RawMinkContext extends Context implements MinkAwareContext |
||
| 9 | { |
||
| 10 | private $mink; |
||
| 11 | |||
| 12 | private $minkParameters; |
||
| 13 | |||
| 14 | public function setMink(Mink $mink) |
||
| 15 | { |
||
| 16 | $this->mink = $mink; |
||
| 17 | } |
||
| 18 | |||
| 19 | public function getMink() |
||
| 20 | { |
||
| 21 | return $this->mink; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function setMinkParameters(array $parameters) |
||
| 25 | { |
||
| 26 | $this->minkParameters = $parameters; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getMinkParameter($offset) |
||
| 30 | { |
||
| 31 | if (!isset($this->minkParameters[$offset])) { |
||
| 32 | throw new \Exception(sprintf( |
||
| 33 | 'Invalid mink parameter "%s".', |
||
| 34 | $offset |
||
| 35 | )); |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->minkParameters[$offset]; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getSession($name = null) |
||
| 44 | } |
||
| 45 | |||
| 46 | public function assertSession($name = null) |
||
| 49 | } |
||
| 50 | |||
| 51 | public function locatePath($path) |
||
| 56 | } |
||
| 57 | } |
||
| 58 |