DescriptorHelper
class DescriptorHelper extends Helper
This class adds helper method to describe objects in various formats.
Properties
protected | $helperSet | from Helper |
Methods
from Helper
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
from Helper
static string
substr(string $string, int $from, int|null $length = null)
Returns the subset of a string, using mb_substr if it is available.
from Helper
static
from Helper
__construct()
No description
describe(OutputInterface $output, object $object, array $options = array())
Describes an object if supported.
$this
string
getName()
Returns the canonical name of this helper.
Details
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static string
substr(string $string, int $from, int|null $length = null)
Returns the subset of a string, using mb_substr if it is available.
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