rodrigorm/audit

View on GitHub
src/Audit/ClassDiagram/Report.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace RodrigoRM\Audit\ClassDiagram;

use RodrigoRM\Audit\Report as ReportInterface;

use Alom\Graphviz\Digraph;

class Report implements ReportInterface
{
    private $graph;

    public function __construct(Digraph $graph)
    {
        $this->graph = $graph;
    }

    public function write($filename)
    {
        file_put_contents($filename, $this->graph->render());
    }
}