Documentation

GraphVizClassDiagram
in package
implements Generator

Interfaces, Classes and Traits

Generator

Table of Contents

$namespaceCache  : array<string|int, Graph>
$nodeCache  : array<string, ?\phpDocumentor\GraphViz\Node>
create()  : void
Creates a class inheritance diagram.
buildNamespaceTree()  : void
Builds a tree of namespace subgraphs with their classes associated.
checkIfGraphVizIsInstalled()  : void
Checks whether GraphViz is installed and throws an Exception otherwise.
createEdge()  : Edge|null
Creates a GraphViz Edge between two nodes.
createEmptyNode()  : Node|null
createGraphForNamespace()  : Graph
createNamespaceGraph()  : Graph|null

Properties

$nodeCache

private array<string, ?\phpDocumentor\GraphViz\Node> $nodeCache = []

a cache where nodes for classes, interfaces and traits are stored for reference

Methods

checkIfGraphVizIsInstalled()

Checks whether GraphViz is installed and throws an Exception otherwise.

private checkIfGraphVizIsInstalled() : void
Tags
throws
RuntimeException

If graphviz is not found.

Return values
void

createGraphForNamespace()

private createGraphForNamespace(string $fullNamespaceName, string $label) : Graph
Parameters
$fullNamespaceName : string
$label : string
Return values
Graph

Search results