Inheritance: extends Symfony\Component\Console\Command\Command
コード例 #1
0
ファイル: ConvertToPHP.php プロジェクト: harold4/xsd2php
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $definition = $this->getDefinition();
     $definition->addOption(new InputOption('php-version', null, InputOption::VALUE_OPTIONAL, 'Target PHP version number. Syntax: <info>php-major.php-minor</info>. Example: <info>5.2</info>'));
     $definition->addOption(new InputOption('base-class', null, InputOption::VALUE_OPTIONAL, 'Base class name for generated classes.'));
     $this->setName('convert:php');
     $this->setDescription('Convert XSD definitions into PHP classes');
 }
コード例 #2
0
ファイル: ConvertToYaml.php プロジェクト: goetas/xsd2php
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('convert:jms-yaml');
     $this->setDescription('Convert XSD definitions into YAML metadata for JMS Serializer');
 }
コード例 #3
0
ファイル: ConvertToPHP.php プロジェクト: josedasilva/xsd2php
 /**
  *
  * @see Console\Command\Command
  */
 protected function configure()
 {
     parent::configure();
     $this->setName('convert:php');
     $this->setDescription('Convert XSD definitions into PHP classes');
 }