| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function getDescriptorType(ProfileContext $context) |
||
| 28 | { |
||
| 29 | $ssoSessionState = $context->getLogoutSsoSessionState(); |
||
| 30 | $ownEntityId = $context->getOwnEntityDescriptor()->getEntityID(); |
||
| 31 | |||
| 32 | if ($ssoSessionState->getIdpEntityId() == $ownEntityId) { |
||
| 33 | return SpSsoDescriptor::class; |
||
| 34 | } elseif ($ssoSessionState->getSpEntityId() == $ownEntityId) { |
||
| 35 | return IdpSsoDescriptor::class; |
||
| 36 | } else { |
||
| 37 | throw new LightSamlContextException($context, 'Unable to resolve logout target descriptor type'); |
||
| 38 | } |
||
| 41 |