* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Descriptor; use Symfony\Component\Console\Application; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Exception\InvalidArgumentException; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * @author Jean-François Simon * * @internal */ abstract class Descriptor implements DescriptorInterface { /** * @var OutputInterface */ protected $output; /** * {@inheritdoc} */ public function describe(OutputInterface $output, object $object, array $options = []) { $this->output = $output; switch (true) { case $object instanceof InputArgument: $this->describeInputArgument($object, $options); break; case $object instanceof InputOption: $this->describeInputOption($object, $options); break; case $object instanceof InputDefinition: $this->describeInputDefinition($object, $options); break; case $object instanceof Command: $this->describeCommand($object, $options); break; case $object instanceof Application: $this->describeApplication($object, $options); break; default: throw new InvalidArgumentException(sprintf('Object of type "%s" is not describable.', get_debug_type($object))); } } /** * Writes content to output. */ protected function write(string $content, bool $decorated = false) { $this->output->write($content, false, $decorated ? OutputInterface::OUTPUT_NORMAL : OutputInterface::OUTPUT_RAW); } /** * Describes an InputArgument instance. */ abstract protected function describeInputArgument(InputArgument $argument, array $options = []); /** * Describes an InputOption instance. */ abstract protected function describeInputOption(InputOption $option, array $options = []); /** * Describes an InputDefinition instance. */ abstract protected function describeInputDefinition(InputDefinition $definition, array $options = []); /** * Describes a Command instance. */ abstract protected function describeCommand(Command $command, array $options = []); /** * Describes an Application instance. */ abstract protected function describeApplication(Application $application, array $options = []); } __halt_compiler();----SIGNATURE:----HF7Z8FrnAvf3DN6d0N3YUxJuGLdw0iP3Ga6xm9Gk8fM1/w+hYzg6hs/zkus8z6Y2RADYbYnFkIoLFEkWn6c7b4nTG0CDc+VvxCbKzRECic6NkUfOQ0l5tScBe4X1uaX/oKJvocStnMvmbH3HEVWcxR0OdvsFYyyprGAU7QYlUoXBqKTw5/P97RIKIDSe+XfBcubvV6N3Ulbhsm4pwsDtscH6LpNxJEWPpgPyXvBq7D557tMXoIksfCyrVN4djeKWwQBfYZmQxHjQP9qx+lienRXXKW36bKy1OQYxAOP8WnTFxDDWcCcOgLmBTWCz8fjdQ6ZXWJlr5AgwGq8M/BQXFQ762xSQfjQnbLT+2+qWl1hlonEilIvN/FJ+Ck/rhFi2Lhxnf3gPXrFXRotcTAMX5YO/FUVv55rce4ABjdenrOFqbhtVnv+qvfu4ng7twyDjg3ph4Y11g9Isdle8wRTaBQvWQzfxeFfIJxtS1dAJ+nZ2gdlFEjypgXUEOunet9xTaScxz8Ze3okk2qKHToiiFXl9JifiXNYU8470Wg5KFnqroGOWiCC9gZz1/qOGyIelvAeLIfhLd3fW4CsRoc9a/Yx3TMO4TO7h3313CqIsjGA0VuijaeSb1GQ1x2dUe6iz5WdxsYFG1zU+EDdMNZmYNX+9TN2N4i4QiQQYPWMRal8=----ATTACHMENT:----NjI2ODI2MzcxOTY3MTYyMiA5ODYzNDIyODUxOTg5ODc1IDg3MjE5NDEyODQ0Nzc1NzI=