final | |
---|---|
implements |
Immutable |
uses |
HasMutator |
Maps inline formatting tags to formats
Methods | ||
---|---|---|
public
|
__construct(bool $unescape = true, bool $wrapAfterApply = false, ?ConsoleFormatInterface $fallbackFormat = null)
|
# |
public
|
withUnescape(bool $value = true): static
|
# |
public
|
withWrapAfterApply(bool $value = true): static
|
# |
public
|
getUnescape(): bool
|
# |
public
|
getWrapAfterApply(): bool
|
# |
public
|
withFormat(ConsoleTag::* $tag, ConsoleFormatInterface $format): static
|
# |
public
|
getFormat(ConsoleTag::* $tag): ConsoleFormatInterface
|
# |
public
|
apply(?string $text, ConsoleTagAttributes $attributes): string
|
# |