1 | <?php |
||
25 | class SVG extends Base implements ContainerInterface, ElementFactoryInterface, SVGOutputInterface |
||
26 | { |
||
27 | use ElementTrait, ChildTrait; |
||
28 | |||
29 | /** |
||
30 | * @var XMLDocumentInterface |
||
31 | */ |
||
32 | private $svg; |
||
33 | |||
34 | /** |
||
35 | * @var OutputInterface |
||
36 | */ |
||
37 | private $outputImpl; |
||
38 | |||
39 | 121 | public function __construct($width = 640, $height = 480, XMLDocumentInterface $dom = null) |
|
61 | |||
62 | /** |
||
63 | * @param array $assoc |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | 121 | public function apply(array $assoc) |
|
73 | |||
74 | 3 | public function getRoot() |
|
78 | |||
79 | 2 | public function getName() |
|
83 | |||
84 | /** |
||
85 | * @return DOMElement |
||
86 | */ |
||
87 | 121 | public function getElement() |
|
91 | |||
92 | 121 | public function createElement($name, $value = null, $attributes = []) |
|
100 | |||
101 | public function __toString() |
||
105 | |||
106 | 42 | public function draw() |
|
110 | |||
111 | public function asBase64() |
||
117 | |||
118 | /** |
||
119 | * @inheritdoc |
||
120 | */ |
||
121 | public function copy(array $apply = [], array $ignore = [], ContainerInterface $parent = null) |
||
125 | |||
126 | /** |
||
127 | * Returns escaped svg as plain text. |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | public function asString() |
||
135 | |||
136 | /** |
||
137 | * @inheritdoc |
||
138 | */ |
||
139 | public function asSVG() |
||
143 | |||
144 | /** |
||
145 | * @inheritdoc |
||
146 | */ |
||
147 | public function asSVGZ($sendHeader = false) |
||
155 | |||
156 | /** |
||
157 | * @inheritdoc |
||
158 | */ |
||
159 | public function asDataUriBase64() |
||
166 | |||
167 | /** |
||
168 | * @inheritdoc |
||
169 | */ |
||
170 | public function asFile($name, $prettyPrint = false, $override = false) |
||
178 | |||
179 | /** |
||
180 | * @inheritdoc |
||
181 | */ |
||
182 | public function asImageFile($name, $format = IOFormat::PNG, $override = false) |
||
191 | |||
192 | /** |
||
193 | * @inheritdoc |
||
194 | */ |
||
195 | public function asImage($format = IOFormat::PNG, $sendHeader = false) |
||
203 | } |
||
204 |
This check looks for function calls that miss required arguments.