\Symfony\Component\Console\HelperInputAwareHelper

An implementation of InputAwareInterface for Helpers.

Summary

Methods
Properties
Constants
setHelperSet()
getHelperSet()
strlen()
substr()
formatTime()
formatMemory()
strlenWithoutDecoration()
removeDecoration()
setInput()
No public properties found
No constants found
No protected methods found
$helperSet
$input
N/A
No private methods found
No private properties found
N/A

Properties

$helperSet

$helperSet : 

Type

$input

$input : 

Type

Methods

strlen()

strlen(string  $string) : integer

Returns the length of a string, using mb_strwidth if it is available.

Parameters

string $string

The string to check its length

Returns

integer —

The length of the string

substr()

substr(string  $string, integer  $from, integer|null  $length = null) : string

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

Parameters

string $string

String to subset

integer $from

Start offset

integer|null $length

Length to read

Returns

string —

The string subset

formatTime()

formatTime(  $secs) 

Parameters

$secs

formatMemory()

formatMemory(  $memory) 

Parameters

$memory