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

/**
 * Check that either a method or a function is specified
 *
 */
class gtIsSpecifiedFunctionOrMethod extends gtPreCondition {

  public function check( $clo) {
    return $clo->hasOption('f') || $clo->hasOption('m');
  }

  public function getMessage() {
    return gtText::get('functionOrMethodNotSpecified');
  }
}
?>