| 1 | <?php |
||
| 20 | class CallableLocator implements LocatorInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var callable |
||
| 24 | */ |
||
| 25 | private $callable; |
||
| 26 | |||
| 27 | 1 | public function __construct(callable $callable) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Returns a path to the file for given class name |
||
| 34 | * |
||
| 35 | * @param string $className Name of the class |
||
| 36 | * |
||
| 37 | * @return string|false Path to the file with given class or false if not found |
||
| 38 | */ |
||
| 39 | 1 | public function locateClass($className) |
|
| 43 | } |
||
| 44 |