BumbleDocGen / Technical description of the project / Class map / FixStrSize
FixStrSize class:
namespace BumbleDocGen\Core\Renderer\Twig\Filter;
final class FixStrSize implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterface
The filter pads the string with the specified characters on the right to the specified size
name | value |
---|---|
Filter name: | fixStrSize |
- # __invoke | source code
public function __invoke(string $text, int $size, string $symbol = ' '): string;
Parameters:
Name | Type | Description |
---|---|---|
$text | string | Processed text |
$size | int | Required string size |
$symbol | string | The character to be used to complete the string |
Return value: string
- # getName | source code
public static function getName(): string;
Parameters: not specified
Return value: string
- # getOptions | source code
public static function getOptions(): array;
Parameters: not specified
Return value: array