Copied!

Helper is the base class for all helper classes.

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

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)
public setHelperSet(?Symfony\Component\Console\Helper\HelperSet $helperSet = NULL)
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 $helperSet
Methods
public static formatMemory(int $memory)
public static formatTime(int|float $secs)
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)
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.

© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration