| Methods |
public
|
setHelperSet(HelperSet $helperSet = null): void
Sets the helper set associated with this helper.
Sets the helper set associated with this helper.
Implements
|
#
|
public
|
getHelperSet(): ?HelperSet
Gets the helper set associated with this helper.
Gets the helper set associated with this helper.
Implements
|
#
|
public
static
|
width(?string $string): int
Returns the width of a string, using mb_strwidth if it is available.
The width is how many characters positions the…
Returns the width of a string, using mb_strwidth if it is available.
The width is how many characters positions the string will use.
|
#
|
public
static
|
length(?string $string): int
Returns the length of a string, using mb_strlen if it is available.
The length is related to how many bytes the string…
Returns the length of a string, using mb_strlen if it is available.
The length is related to how many bytes the string will use.
|
#
|
public
static
|
substr(?string $string, int $from, int $length = null): string
Returns the subset of a string, using mb_substr if it is available.
Returns the subset of a string, using mb_substr if it is available.
|
#
|
public
static
|
formatTime(int|float $secs): string
|
#
|
public
static
|
formatMemory(int $memory): string
|
#
|
public
static
|
removeDecoration(OutputFormatterInterface $formatter, ?string $string): string
|
#
|