Conditions | 2 |
Paths | 2 |
Total Lines | 4 |
Code Lines | 2 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
44 | public function exceptionMessageOnTestFailure($parameterName, $value, $itemType = false) |
||
45 | { |
||
46 | if ($this->getRestrictionModel()) { |
||
47 | return sprintf('sprintf(\'Invalid value(s) %%s, please use one of: %%s from enumeration class %2$s\', is_array($%1$s) ? implode(\', \', $%1$s) : $%1$s, implode(\', \', %2$s::%3$s()))', $parameterName, $this->getRestrictionModel()->getPackagedName(true), StructEnum::METHOD_GET_VALID_VALUES); |
||
48 | } |
||
62 |