1 | <?php |
||
20 | class SVG extends Base implements ContainerInterface, ElementFactoryInterface |
||
21 | { |
||
22 | use ElementTrait, ChildTrait; |
||
23 | |||
24 | /** |
||
25 | * @var XMLDocumentInterface |
||
26 | */ |
||
27 | private $svg; |
||
28 | |||
29 | public function __construct($width = 640, $height = 480, XMLDocumentInterface $dom = null) |
||
50 | |||
51 | /** |
||
52 | * @param array $assoc |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function apply(array $assoc) |
||
62 | |||
63 | public function getRoot() |
||
67 | |||
68 | public function getName() |
||
72 | |||
73 | /** |
||
74 | * @return DOMElement |
||
75 | */ |
||
76 | public function getElement() |
||
80 | |||
81 | public function createElement($name, $value = null, $attributes = []) |
||
89 | |||
90 | public function __toString() |
||
94 | |||
95 | public function draw() |
||
99 | |||
100 | public function asBase64() |
||
105 | |||
106 | /** |
||
107 | * @inheritdoc |
||
108 | */ |
||
109 | public function copy(array $apply = [], array $ignore = [], ContainerInterface $parent = null) |
||
113 | } |
||
114 |