meyfa/php-svg

View on GitHub
src/Nodes/Structures/SVGScript.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace SVG\Nodes\Structures;

use SVG\Nodes\CDataContainer;
use SVG\Nodes\SVGNodeContainer;
use SVG\Rasterization\SVGRasterizer;

/**
 * Represents the SVG tag 'script'.
 */
class SVGScript extends SVGNodeContainer implements CDataContainer
{
    public const TAG_NAME = 'script';

    /**
     * @param string $content The script content.
     */
    public function __construct(string $content = '')
    {
        parent::__construct();

        $this->setValue($content);
    }

    /**
     * @inheritdoc
     */
    public function rasterize(SVGRasterizer $rasterizer): void
    {
    }
}