| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function getEncryptedAssertionReader(AssertionContext $context) |
||
| 26 | { |
||
| 27 | $result = $context->getEncryptedAssertion(); |
||
| 28 | if ($result instanceof EncryptedAssertionReader) { |
||
| 29 | return $result; |
||
| 30 | } |
||
| 31 | |||
| 32 | throw new LightSamlContextException($context, 'Expected EncryptedAssertionReader'); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |