1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Console;
4:
5: use Salient\Contract\Console\ConsoleMessageAttributesInterface as MessageAttributes;
6: use Salient\Contract\Console\ConsoleTagAttributesInterface as TagAttributes;
7:
8: interface ConsoleFormatInterface
9: {
10: /**
11: * Format text before it is written to the target
12: *
13: * @param MessageAttributes|TagAttributes|null $attributes
14: */
15: public function apply(?string $text, $attributes = null): string;
16: }
17: