Пример #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('java')->setDescription('Generates Java objects from JSON string (or URL)')->addOption('input', 'i', InputOption::VALUE_REQUIRED, 'JSON file path or URL')->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Output directory')->addOption('baseclass', 'b', InputOption::VALUE_REQUIRED, 'Name of base class')->addOption('package', 'p', InputOption::VALUE_OPTIONAL, 'Package name')->addOption('includeGson', 'g', InputOption::VALUE_OPTIONAL, 'If set, the task will include Gson serializable names');
 }
Пример #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('objc')->setDescription('Generates Object-C objects from JSON string (or URL)')->addOption('input', 'i', InputOption::VALUE_REQUIRED, 'JSON file path or URL')->addOption('output', 'o', InputOption::VALUE_REQUIRED, 'Output directory')->addOption('baseclass', 'b', InputOption::VALUE_REQUIRED, 'Name of base class')->addOption('prefix', 'p', InputOption::VALUE_OPTIONAL, 'Class prefix');
 }