LocatorInterface
last analyzed

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
locateClass() 0 1 ?
1
<?php
2
/**
3
 * Parser Reflection API
4
 *
5
 * @copyright Copyright 2015, Lisachenko Alexander <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Go\ParserReflection;
12
13
/**
14
 * Locator is responsible to return a file name for given item, typically class
15
 */
16
interface LocatorInterface
17
{
18
19
    /**
20
     * Returns a path to the file for given class name
21
     *
22
     * @param string $className Name of the class (with or without leading '\' FQCN)
23
     *
24
     * @return string|false Path to the file with given class or false if not found
25
     */
26
    public function locateClass($className);
27
}
28