summaryrefslogtreecommitdiff
path: root/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php
blob: 7495c73ecaabebb27dcad2109aa7e86259160056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

/**
 * Check that either a method or a function is specified
 *
 */
class gtIsSpecifiedFunctionOrMethod extends gtPreCondition {
  
  public function check( $clo) {
    if($clo->hasOption('f') || $clo->hasOption('m')) {
    
        return true;
      }
    return false;
  }
  
  public function getMessage() {
    return gtText::get('functionOrMethodNotSpecified');
  }
}
?>