/** * Correct (if needed) class doc block comment. Works for one element from the queue * * @param \Includes\Decorator\DataStructure\Graph\Classes $node Current node * * @return void */ protected function correctTagsOnElement(\Includes\Decorator\DataStructure\Graph\Classes $node) { $path = LC_DIR_CACHE_CLASSES . $node->getPath(); \Includes\Utils\FileManager::write($path, \Includes\Decorator\Utils\Tokenizer::getSourceCode($path, null, null, null, call_user_func_array(array($node, 'addLinesToDocBlock'), $this->getTagsToAdd($node)), $node->isDecorator() ? 'abstract' : null)); }
/** * Actualize and return source code for node * * @param self $parent Parent node OPTIONAL * * @return string */ protected function getActualSource(self $parent = null) { return \Includes\Decorator\Utils\Tokenizer::getSourceCode($this->getFile(), $this->getActualNamespace(), $this->getClassBaseName(), $this->getActualParentClassName($parent), $this->removeLinesFromDocBlock(array('ListChild')), $this->isLowLevelNode() || $this->isDecorator() ? 'abstract' : null); }