Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function __construct($strategy, array $candidates) |
||
21 | { |
||
22 | $classes = array_map( |
||
23 | function ($a) { |
||
24 | return $a['class']; |
||
25 | }, |
||
26 | $candidates |
||
27 | ); |
||
28 | |||
29 | $message = sprintf( |
||
30 | 'No valid candidate found using strategy "%s". We tested the following candidates: %s.', |
||
31 | $strategy, |
||
32 | implode(', ', $classes) |
||
33 | ); |
||
34 | |||
35 | parent::__construct($message); |
||
36 | } |
||
37 | } |
||
38 |