blob: a16681f7363e49a78f99ee393792341ccff0f55f [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\VarDumper\Caster;
13
14/**
15 * @author Grégoire Pineau <lyrixx@lyrixx.info>
16 */
17class ImgStub extends ConstStub
18{
19 public function __construct(string $data, string $contentType, string $size = '')
20 {
21 $this->value = '';
22 $this->attr['img-data'] = $data;
23 $this->attr['img-size'] = $size;
24 $this->attr['content-type'] = $contentType;
25 }
26}