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