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