1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Console\Format;
4:
5: use Salient\Contract\Console\HasMessageType;
6: use Salient\Contract\HasMessageLevel;
7:
8: /**
9: * @api
10: */
11: interface MessageFormatInterface extends HasMessageLevel, HasMessageType
12: {
13: /**
14: * Format a console message
15: */
16: public function apply(
17: string $msg1,
18: ?string $msg2,
19: string $prefix,
20: MessageAttributesInterface $attributes
21: ): string;
22: }
23: