private array
$descriptors =
[];
public function __construct() { $this ->
register('txt',
new TextDescriptor()) ->
register('xml',
new XmlDescriptor()) ->
register('json',
new JsonDescriptor()) ->
register('md',
new MarkdownDescriptor()) ->
register('rst',
new ReStructuredTextDescriptor()) ;
} /**
* Describes an object if supported.
*
* Available options are:
* * format: string, the output format name
* * raw_text: boolean, sets output type as raw
*
* @return void
*
* @throws InvalidArgumentException when the given format is not supported
*/