PHPCfg\Printer\GraphViz::printFuncWithHeader PHP Method

printFuncWithHeader() protected method

protected printFuncWithHeader ( Func $func, phpDocumentor\GraphViz\Graph $graph, $prefix )
$func PHPCfg\Func
$graph phpDocumentor\GraphViz\Graph
    protected function printFuncWithHeader(Func $func, Graph $graph, $prefix)
    {
        $name = $func->getScopedName();
        $header = $this->createNode($prefix . 'header', "Function {$name}():");
        $graph->setNode($header);
        $start = $this->printFuncInto($func, $graph, $prefix);
        $edge = $this->createEdge($header, $start);
        $graph->link($edge);
    }