| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function execute(ContextInterface $context) |
||
| 34 | { |
||
| 35 | if ($context instanceof ProfileContext) { |
||
| 36 | $this->doExecute($context); |
||
| 37 | } else { |
||
| 38 | $message = sprintf('Expected ProfileContext but got %s', get_class($context)); |
||
| 39 | $this->logger->emergency($message, ['context' => $context]); |
||
| 40 | throw new LightSamlContextException($context, $message); |
||
| 41 | } |
||
| 46 |