| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class AnnotateClassInfo |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $className = ''; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var ReflectionClass |
||
| 24 | */ |
||
| 25 | protected $reflector; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * AnnotateClassInfo constructor. |
||
| 29 | * |
||
| 30 | * @param $className |
||
| 31 | * @throws ReflectionException |
||
| 32 | */ |
||
| 33 | public function __construct($className) |
||
| 34 | { |
||
| 35 | $this->className = $className; |
||
| 36 | |||
| 37 | $this->reflector = new ReflectionClass($className); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Where module name is a folder in the webroot. |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getModuleName() |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getClassFilePath() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |