PHP Класс PDepend\Report\Summary\Xml

Наследование: extends PDepend\Source\ASTVisitor\AbstractASTVisitor, implements PDepend\Report\CodeAwareGenerator, implements PDepend\Report\FileAwareGenerator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$code PDepend\Source\AST\ASTArtifactList The raw {@link \PDepend\Source\AST\ASTNamespace} instances.
$fileSet PDepend\Source\AST\ASTCompilationUnit[] Set of all analyzed files.

Открытые методы

Метод Описание
close ( ) : void Closes the logger process and writes the output file.
getAcceptedAnalyzers ( ) : array(string) Returns an array with accepted analyzer types. These types can be concrete analyzer classes or one of the descriptive analyzer interfaces.
log ( PDepend\Metrics\Analyzer $analyzer ) : boolean Adds an analyzer to log. If this logger accepts the given analyzer it with return true, otherwise the return value is false.
setArtifacts ( PDepend\Source\AST\ASTArtifactList $artifacts ) : void Sets the context code nodes.
setLogFile ( string $logFile ) : void Sets the output log file.
visitClass ( PDepend\Source\AST\ASTClass $class ) : void Visits a class node.
visitFunction ( PDepend\Source\AST\ASTFunction $function ) : void Visits a function node.
visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void Visits a code interface object.
visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void Visits a method node.
visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void Visits a namespace node.
visitTrait ( PDepend\Source\AST\ASTTrait $trait ) : void Visits a trait node.

Защищенные методы

Метод Описание
writeFileReference ( DOMElement $xml, ASTCompilationUnit $compilationUnit = null ) : void Appends a file reference element to the given $xml element.
writeNodeMetrics ( DOMElement $xml, PDepend\Source\AST\AbstractASTArtifact $node ) : void Aggregates all metrics for the given $node instance and adds them to the \DOMElement

Приватные методы

Метод Описание
generateTypeXml ( PDepend\Source\AST\ASTClass $type, string $typeIdentifier ) : void Generates the XML for a class or trait node.
getProjectMetrics ( ) : array(string=>mixed) Returns an array with all collected project metrics.

Описание методов

close() публичный Метод

Closes the logger process and writes the output file.
public close ( ) : void
Результат void

getAcceptedAnalyzers() публичный Метод

Returns an array with accepted analyzer types. These types can be concrete analyzer classes or one of the descriptive analyzer interfaces.
public getAcceptedAnalyzers ( ) : array(string)
Результат array(string)

log() публичный Метод

Adds an analyzer to log. If this logger accepts the given analyzer it with return true, otherwise the return value is false.
public log ( PDepend\Metrics\Analyzer $analyzer ) : boolean
$analyzer PDepend\Metrics\Analyzer The analyzer to log.
Результат boolean

setArtifacts() публичный Метод

Sets the context code nodes.
public setArtifacts ( PDepend\Source\AST\ASTArtifactList $artifacts ) : void
$artifacts PDepend\Source\AST\ASTArtifactList
Результат void

setLogFile() публичный Метод

Sets the output log file.
public setLogFile ( string $logFile ) : void
$logFile string The output log file.
Результат void

visitClass() публичный Метод

Visits a class node.
public visitClass ( PDepend\Source\AST\ASTClass $class ) : void
$class PDepend\Source\AST\ASTClass
Результат void

visitFunction() публичный Метод

Visits a function node.
public visitFunction ( PDepend\Source\AST\ASTFunction $function ) : void
$function PDepend\Source\AST\ASTFunction
Результат void

visitInterface() публичный Метод

Visits a code interface object.
public visitInterface ( PDepend\Source\AST\ASTInterface $interface ) : void
$interface PDepend\Source\AST\ASTInterface
Результат void

visitMethod() публичный Метод

Visits a method node.
public visitMethod ( PDepend\Source\AST\ASTMethod $method ) : void
$method PDepend\Source\AST\ASTMethod
Результат void

visitNamespace() публичный Метод

Visits a namespace node.
public visitNamespace ( PDepend\Source\AST\ASTNamespace $namespace ) : void
$namespace PDepend\Source\AST\ASTNamespace
Результат void

visitTrait() публичный Метод

Visits a trait node.
public visitTrait ( PDepend\Source\AST\ASTTrait $trait ) : void
$trait PDepend\Source\AST\ASTTrait
Результат void

writeFileReference() защищенный Метод

protected writeFileReference ( DOMElement $xml, ASTCompilationUnit $compilationUnit = null ) : void
$xml DOMElement The parent xml element.
$compilationUnit PDepend\Source\AST\ASTCompilationUnit The code file instance.
Результат void

writeNodeMetrics() защищенный Метод

Aggregates all metrics for the given $node instance and adds them to the \DOMElement
protected writeNodeMetrics ( DOMElement $xml, PDepend\Source\AST\AbstractASTArtifact $node ) : void
$xml DOMElement
$node PDepend\Source\AST\AbstractASTArtifact
Результат void

Описание свойств

$code защищенное свойство

The raw {@link \PDepend\Source\AST\ASTNamespace} instances.
protected ASTArtifactList,PDepend\Source\AST $code
Результат PDepend\Source\AST\ASTArtifactList

$fileSet защищенное свойство

Set of all analyzed files.
protected ASTCompilationUnit[],PDepend\Source\AST $fileSet
Результат PDepend\Source\AST\ASTCompilationUnit[]