| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public static function invalidValue($value) |
||
| 26 | { |
||
| 27 | if (!$value instanceof DOMNodeList) { |
||
| 28 | return new self( |
||
| 29 | sprintf('Expected EPTI attribute to contain a DOMNodeList, received "%s" ', gettype($value)) |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | return new self( |
||
| 34 | sprintf( |
||
| 35 | 'Expected EPTI attribute to contain exactly one NameID as value, received: %s', |
||
| 36 | $value->length |
||
| 37 | ) |
||
| 38 | ); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |