Conditions | 2 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 1 | public function __call($name, $arguments) |
|
29 | { |
||
30 | try { |
||
31 | 1 | $type = eRecordType::get(mb_strtoupper(str_replace("iterate", "", $name))); |
|
32 | |||
33 | 1 | return $this->iterateRecords($type); |
|
34 | } catch (InvalidArgumentException $e) { |
||
35 | throw new BadMethodCallException("Method {$name} not found"); |
||
36 | } |
||
37 | } |
||
38 | |||
44 | } |