Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?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 | |
| 12 | namespace Symfony\Component\VarDumper\Caster; |
| 13 | |
| 14 | /** |
| 15 | * @author Grégoire Pineau <lyrixx@lyrixx.info> |
| 16 | */ |
| 17 | class 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 | } |