| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | 4 | protected function checkValue($againstValue) |
|
| 25 | { |
||
| 26 | 4 | if (!is_object($againstValue)) { |
|
| 27 | 1 | throw new RuleException('Input is not an object.'); |
|
| 28 | } |
||
| 29 | 3 | if (! ($againstValue instanceof IValidate) ) { |
|
| 30 | 1 | throw new RuleException(sprintf('Input %s is not instance of IValidate.', get_class($againstValue))); |
|
| 31 | } |
||
| 32 | 2 | return $againstValue; |
|
| 33 | } |
||
| 35 |