Total Complexity | 8 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Psr0FindFile implements ClassFinderInterface |
||
16 | { |
||
17 | /** |
||
18 | * The PSR-0 prefixes. |
||
19 | * |
||
20 | * @var string[][] |
||
21 | */ |
||
22 | protected $prefixes; |
||
23 | |||
24 | /** |
||
25 | * @param string[][] $prefixes An array of prefixes. Each key is a PHP namespace and each value is |
||
26 | * a list of directories. |
||
27 | */ |
||
28 | 20 | public function __construct($prefixes) |
|
29 | { |
||
30 | 20 | $this->prefixes = $prefixes; |
|
31 | 20 | } |
|
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | 20 | public function findFile($class) |
|
69 | } |
||
70 | } |
||
71 |