Пример #1
0
 protected function mapMethodName($methodName)
 {
     if ($methodName == 'error') {
         return 'error!';
     } else {
         return parent::mapMethodName($methodName);
     }
 }
Пример #2
0
 protected function mapMethodName($methodName)
 {
     if ($methodName == 'ifStmt') {
         return 'if';
     } else {
         return parent::mapMethodName($methodName);
     }
 }
Пример #3
0
 protected function mapMethodName($method)
 {
     $map = array('plus' => '+', 'minus' => '-', 'times' => '*');
     return isset($map[$method]) ? $map[$method] : parent::mapMethodName($method);
 }