summaryrefslogtreecommitdiff
path: root/scripts/dev/generate-phpt/src/setup/preconditions/gtIsSpecifiedFunctionOrMethod.php
blob: b78c1530f71a4d900448de0df3b2b56e8719baee (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');
  }
}
?>