/** * This method does the work of "reflecting" the file * * Uses Zend\Code\Scanner\FileScanner to gather file information * * @return void */ protected function reflect() { $scanner = new \Zend\Code\Scanner\FileScanner($this->filePath); $this->docComment = $scanner->getDocComment(); $this->requiredFiles = $scanner->getIncludes(); $this->classes = $scanner->getClasses(); $this->namespace = $scanner->getNamespaces(); $this->uses = $scanner->getUses(); }