1 | <?php |
||
22 | abstract class SVGElement implements ContainerInterface, ElementFactoryInterface |
||
23 | { |
||
24 | use ElementTrait, ChildTrait; |
||
25 | |||
26 | private static $notConvertable = ['diffuseConstant', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'limitingConeAngle', 'tableValues', 'filterUnits', 'gradientUnits', 'viewBox', 'repeatCount', 'attributeName', 'attributeType', 'stdDeviation']; |
||
27 | |||
28 | /** |
||
29 | * @var XMLDocumentInterface | ElementInterface | ElementFactoryInterface | ContainerInterface |
||
30 | */ |
||
31 | protected $root; |
||
32 | |||
33 | /** |
||
34 | * @var XMLDocumentInterface | ElementInterface | ElementFactoryInterface | ContainerInterface |
||
35 | */ |
||
36 | protected $element; |
||
37 | |||
38 | public function __construct(ElementInterface $parent) |
||
45 | |||
46 | public function createElement($name, $value = null, $attributes = []) |
||
50 | |||
51 | abstract public function getName(); |
||
52 | |||
53 | final public function getRoot() |
||
57 | |||
58 | final public function getElement() |
||
62 | |||
63 | public function allAttributes(array $except = []) |
||
67 | |||
68 | public function __get($name) |
||
78 | |||
79 | public function __set($name, $value) |
||
93 | |||
94 | public function getXLinkAttribute($name) |
||
98 | |||
99 | /** |
||
100 | * @param $name |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | private function convertAttributeName($name) |
||
108 | |||
109 | /** |
||
110 | * @inheritdoc |
||
111 | */ |
||
112 | public function apply(array $assoc) |
||
122 | |||
123 | protected function setAttribute($name, $value, $xLink = false) |
||
131 | |||
132 | public function getSVG() |
||
145 | |||
146 | protected function createDefs() |
||
150 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..