AlignFormatter
in package
implements
Formatter
Interfaces, Classes and Traits
Table of Contents
- $maxLen : int
- __construct() : mixed
- format() : string
- Formats the given tag to return a simple plain text version.
Properties
$maxLen
protected
int
$maxLen
= 0
The maximum tag name length.
Methods
__construct()
public
__construct(array<string|int, Tag> $tags) : mixed
Parameters
- $tags : array<string|int, Tag>
-
All tags that should later be aligned with the formatter.
Return values
mixed —format()
Formats the given tag to return a simple plain text version.
public
format(Tag $tag) : string
Parameters
- $tag : Tag