original_string: public function validateOptions($command)
      {
          if ($command->option('ui') && !in_array($command->option('ui'), ['bootstrap', 'semantic'])) {
              throw new Exception('The UI you selected is not suppported. It must be: bootstrap or semantic.', 1);
          }
  
          if ((!is_null($command->option('schema')) && !$command->option('migration')) ||
              (!is_null($command->option('relationships')) && !$command->option('migration'))
          ) {
              throw new Exception('In order to use Schema or Relationships you need to use Migrations', 1);
          }
  
          return true;
      }
code: public function validateOptions($command)
      {
          if ($command->option('ui') && !in_array($command->option('ui'), ['bootstrap', 'semantic'])) {
              throw new Exception('The UI you selected is not suppported. It must be: bootstrap or semantic.', 1);
          }
  
          if ((!is_null($command->option('schema')) && !$command->option('migration')) ||
              (!is_null($command->option('relationships')) && !$command->option('migration'))
          ) {
              throw new Exception('In order to use Schema or Relationships you need to use Migrations', 1);
          }
  
          return true;
      }
code_tokens: public function validateOptions ( $ command ) { if ( $ command -> option ( 'ui' ) && ! in_array ( $ command -> option ( 'ui' ) , [ 'bootstrap' , 'semantic' ] ) ) { throw new Exception ( 'The UI you selected is not suppported. It must be: bootstrap or semantic.' , 1 ) ; } if ( ( ! is_null ( $ command -> option ( 'schema' ) ) && ! $ command -> option ( 'migration' ) ) || ( ! is_null ( $ command -> option ( 'relationships' ) ) && ! $ command -> option ( 'migration' ) ) ) { throw new Exception ( 'In order to use Schema or Relationships you need to use Migrations' , 1 ) ; } return true ; }
docstring: Validate the options.
  
  @param \Grafite\CrudMaker\Console\CrudMaker $command
  
  @return bool|Exception
docstring_tokens: Validate the options .