root/scripts/dev/generate-phpt/src/setup/preconditions/gtIfClassHasMethod.php

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. check
  2. getMessage

<?php

/**
 * If use has requested a class check that method is specified
 *
 */
class gtIfClassHasMethod extends gtPreCondition {
  
  public function check( $clo) {
    if($clo->hasOption('c')) {
      if(!$clo->hasOption('m')) {
        return false;
      }
      return  true;
    }
    return true;
  }
  
  public function getMessage() {
    return gtText::get('methodNotSpecified');
  }

}

/* [<][>][^][v][top][bottom][index][help] */