meyfa/php-svg

View on GitHub
src/Nodes/Texts/SVGTitle.php

Summary

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

namespace SVG\Nodes\Texts;

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

/**
 * Represents the SVG tag 'title'.
 */
class SVGTitle extends SVGNodeContainer
{
    public const TAG_NAME = 'title';

    public function __construct(string $text = '')
    {
        parent::__construct();
        $this->setValue($text);
    }

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