animation = $anim; } /** * Append the animation to the given element * * @param DOMElement $dom The element to append the animation to * @param RenderContext $ctx The context to use for rendering the animation object */ protected function appendAnimation(DOMElement $dom, RenderContext $ctx) { if ($this->animation) { $dom->appendChild($this->animation->toSvg($ctx)); } } }