1 | <?php |
||
36 | class Renderer { |
||
37 | |||
38 | /** |
||
39 | * The dependency injection container. |
||
40 | * |
||
41 | * @var \Pimple\Container |
||
42 | */ |
||
43 | public $dic; |
||
44 | |||
45 | /** |
||
46 | * The channel between filters. |
||
47 | * |
||
48 | * @var string |
||
49 | */ |
||
50 | public $pipe = null; |
||
51 | |||
52 | /** |
||
53 | * Helper to enumerate GraphViz format filters on the current system. |
||
54 | * |
||
55 | * @throws \ErrorException |
||
56 | * |
||
57 | * @param \Pimple\container $dic |
||
58 | * |
||
59 | * @return string[] |
||
60 | * An array of format names or false if dot cannot be run. |
||
61 | */ |
||
62 | 5 | public static function getFormats(Container $dic) { |
|
99 | |||
100 | /** |
||
101 | * Constructor. |
||
102 | * |
||
103 | * @param \Pimple\Container $dic |
||
104 | */ |
||
105 | 4 | public function __construct(Container $dic) { |
|
108 | |||
109 | /** |
||
110 | * Magic method: apply filter methods by simple name. |
||
111 | * |
||
112 | * @see Grafizzi\Graph\Filter\AbstractFilter::create() |
||
113 | * |
||
114 | * @param string $name |
||
115 | * The simple name for a filter. Will be converted to an actual class name. |
||
116 | * @param array $args |
||
117 | * An array of arguments to pass to the filter method. |
||
118 | * |
||
119 | * @throws \DomainException |
||
120 | * Throws exception if the filter name does not convert to a usable filter |
||
121 | * class. |
||
122 | * |
||
123 | * @return $this |
||
124 | */ |
||
125 | 3 | public function __call($name, $args) { |
|
142 | } |
||
143 |