original_string: protected function executeInTransaction(string $method) : void
      {
          try {
              $this->database->beginTransaction();
  
              $this->{$method}();
  
              $this->database->commit();
          } catch (Exception $exception) {
              $this->database->rollBack();
  
              $this->handleException($exception);
          }
      }
code: protected function executeInTransaction(string $method) : void
      {
          try {
              $this->database->beginTransaction();
  
              $this->{$method}();
  
              $this->database->commit();
          } catch (Exception $exception) {
              $this->database->rollBack();
  
              $this->handleException($exception);
          }
      }
code_tokens: protected function executeInTransaction ( string $ method ) : void { try { $ this -> database -> beginTransaction ( ) ; $ this -> { $ method } ( ) ; $ this -> database -> commit ( ) ; } catch ( Exception $ exception ) { $ this -> database -> rollBack ( ) ; $ this -> handleException ( $ exception ) ; } }
docstring: Execute the migration command inside a transaction layer.
  
  @param string $method
  
  @return void
docstring_tokens: Execute the migration command inside a transaction layer .