* * 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:----tTKkz8N+nEkFPZlx9suFZKNlvSCRbtgns0BF35Oqi3G4oPoZbrFvz2OOjGj4NCwGMWSy4LXLIkJFlVL1A6cfV4W3f6VpDuBmPelyfa+uvFVdtWykGxt5zw2H83lEoEXwXSXQ5xCrjyZi4SDBHNh5fyYOxIumKTcbNQMm9GaxelsH0gFdyuQfHGlTta3/9EZAfuHlB+nOQLi7cTmSiwF119Jv85Vhq3pbThl8ZZWYC8b4rxbr0ARI5iFg/azGK5t7NiGE/gYKRAiCXoGavTTgbzug1ft6dxDybiEnE5WfQ/XFKbaYe24HrZGZIvDxA4MXNFPp7lu0z0DovWwJSGJcD4veYDR7nzoBB5WmHJDiaAYk8RuKkBAgLMDzOEOMMcP51fMnrZHsJu3/cUP2ecQrnW1UD5enVDmoP8Kx5W5hOTBkuqtoAKtj5yBGSIY4w7a1eEKYUi1cIXjVnaCBTrPJuxI+ObZPvFHg2/lw6CqrsnJWITTli2WtIO5NnPzHEO2YJb8DX7FE8lZIdYjtU2yjz+FehU0B2e3xRedF3Zwdp/5IAaXOt4T2L+Qd/OUYnmj8z7mwuWSVDqYrdoM6uMXCwB3UMrz3Gg+bgXntQgoGZrgiYVsYijbVkEkCRi9g2u+iFxwumZKokjciSOgxsQ3NUAMHoBI8DlfXIyK+XSLLwak=----ATTACHMENT:----MjA3NjYyMTczOTA2MDIgNzg3Mjk0NDg0MDU3NDk2NCA5MTI3NTExNzUzMzQxMDY=