/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Console/Terminal/Image/ImageProtocolInterface.php
33 строки
754 B
Robin Chalas
[Console] Add image support to `QuestionHelper` and `#[Ask]`
10 фев 2026, 18:32
Не верифицирован
10 фев 2026, 18:32
dad3c8d
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Terminal\Image; /** * Contract for terminal image protocol handlers. * * @author Robin Chalas <robin.chalas@gmail.com> * * @internal */ interface ImageProtocolInterface { public function detectPastedImage(string $data): bool; /** * @return array{data: string, format: string|null} */ public function decode(string $data): array; public function encode(string $imageData, ?int $maxWidth = null): string; public function getName(): string; }