Skip to content

Latest commit

 

History

History
153 lines (100 loc) · 3.25 KB

FixStrSize.md

File metadata and controls

153 lines (100 loc) · 3.25 KB

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

Settings:

name value
Filter name: fixStrSize

Methods:

  1. __invoke
  2. getName
  3. getOptions

Method details:

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


public static function getName(): string;

Parameters: not specified

Return value: string


public static function getOptions(): array;

Parameters: not specified

Return value: array