ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
SVG.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
20namespace ILIAS\Data;
21
29readonly class SVG implements \Stringable
30{
31 public function __construct(
32 protected string $raw_svg_string,
33 ) {
34 }
35
36 public function __toString(): string
37 {
38 return $this->raw_svg_string;
39 }
40}
Data transfer object that carries the raw SVG data as a string, created from trusted sources.
Definition: SVG.php:30
__construct(protected string $raw_svg_string,)
Definition: SVG.php:31
__toString()
Definition: SVG.php:36