1 | <?php |
||
23 | abstract class AbstractJsonObjectOutputCommand extends Command |
||
24 | { |
||
25 | /** |
||
26 | * @var JsonConverterInterface |
||
27 | */ |
||
28 | protected $jsonConverter; |
||
29 | |||
30 | /** |
||
31 | * AbstractGeneratorCommand constructor. |
||
32 | * |
||
33 | * @param JsonConverterInterface $jsonConverter |
||
34 | * @param string|null $name |
||
35 | */ |
||
36 | public function __construct(JsonConverterInterface $jsonConverter, string $name = null) |
||
41 | |||
42 | /** |
||
43 | * Configures the current command. |
||
44 | */ |
||
45 | protected function configure() |
||
55 | |||
56 | /** |
||
57 | * @param InputInterface $input |
||
58 | * @param OutputInterface $output |
||
59 | * @param \JsonSerializable $json |
||
60 | */ |
||
61 | protected function prepareOutput(InputInterface $input, OutputInterface $output, \JsonSerializable $json) |
||
71 | } |
||
72 |