class DescriptorHelper extends Helper
This class adds helper method to describe objects in various formats.
Methods
setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. | from Helper | |
HelperSet | getHelperSet() Gets the helper set associated with this helper. | from Helper |
static int | strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. | from Helper |
static | formatTime($secs) | from Helper |
static | formatMemory($memory) | from Helper |
static | strlenWithoutDecoration(OutputFormatterInterface $formatter, $string) | from Helper |
__construct() Constructor. | ||
describe(OutputInterface $output, object $object, array $options = array()) Describes an object if supported. | ||
DescriptorHelper | register(string $format, DescriptorInterface $descriptor) Registers a descriptor. | |
string | getName() Returns the canonical name of this helper. |
Details
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
HelperSet getHelperSet()
Gets the helper set associated with this helper.
static int strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static formatTime($secs)
static formatMemory($memory)
static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
__construct()
Constructor.
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
DescriptorHelper register(string $format, DescriptorInterface $descriptor)
Registers a descriptor.
string getName()
Returns the canonical name of this helper.
Please login to continue.