DescriptorHelper
class DescriptorHelper extends Helper
This class adds helper method to describe objects in various formats.
Methods
from Helper
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
from Helper
static
from Helper
__construct()
Constructor.
describe(OutputInterface $output, object $object, array $options = array())
Describes an object if supported.
string
getName()
Returns the canonical name of this helper.
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 37
__construct()
Constructor.
at line line 60
describe(OutputInterface $output, object $object, array $options = array())
Describes an object if supported.
Available options are: * format: string, the output format name * raw_text: boolean, sets output type as raw
at line line 83
DescriptorHelper
register(string $format, DescriptorInterface $descriptor)
Registers a descriptor.
at line line 93
string
getName()
Returns the canonical name of this helper.