Copied!

Helper is the base class for all helper classes.

Abstract
Methods
public static formatMemory(int $memory) : string
public static formatTime(int|float $secs, int $precision = 1) : string
public getHelperSet() : ?Symfony\Component\Console\Helper\HelperSet
public abstract Symfony\Component\Console\Helper\HelperInterface::getName() : string
 

Returns the canonical name of this helper.

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 will use.

public static removeDecoration(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, ?string $string) : string
public setHelperSet(?Symfony\Component\Console\Helper\HelperSet $helperSet) : void
public static substr(?string $string, int $from, ?int $length = NULL) : string
 

Returns the subset of a string, using mb_substr if it is available.

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 string will use.

Properties
protected ?Symfony\Component\Console\Helper\HelperSet $helperSet = NULL
Methods
public static formatMemory(int $memory) : string
public static formatTime(int|float $secs, int $precision = 1) : string
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 will use.

public static removeDecoration(Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, ?string $string) : string
public static substr(?string $string, int $from, ?int $length = NULL) : string
 

Returns the subset of a string, using mb_substr if it is available.

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 string will use.

© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration