| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1.027 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | 1 | public function __construct(Locator $locator, Driver $driver) |
|
| 17 | { |
||
| 18 | 1 | $this->driver = $driver; |
|
| 19 | 1 | $this->locator = $locator; |
|
| 20 | |||
| 21 | 1 | parent::__construct('Item (:type) ":selector", filters :filters, found by driver ":driver"', array( |
|
| 22 | 1 | ':type' => $locator->type(), |
|
| 23 | 1 | ':selector' => $locator->selector(), |
|
| 24 | 1 | ':driver' => $driver->name, |
|
| 25 | ':filters' => json_encode($locator->filters()), |
||
| 26 | )); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |