Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function parseCommandArguments()
 {
     parent::parseCommandArguments();
     if ($this->argument('count')) {
         if (false === ($this->count = filter_var($this->argument('count'), FILTER_VALIDATE_INT, ['options' => ['min_range' => 1]]))) {
             throw new \InvalidArgumentException('Count should be a positive integer.');
         }
     }
 }
Exemplo n.º 2
0
 /**
  * @param EngConnection $connection
  * @param DeleteCommand $command
  * @return void
  */
 public function ExecuteDeleteCommand($connection, $command)
 {
     $connection->ExecSQL($command->GetSQL());
 }