@@ 545-551 (lines=7) @@ | ||
542 | * @throws \UnexpectedValueException |
|
543 | * @return JWKParameter |
|
544 | */ |
|
545 | private static function _checkType(JWKParameter $param, $cls) { |
|
546 | if (!$param instanceof $cls) { |
|
547 | throw new \UnexpectedValueException( |
|
548 | "$cls expected, got " . get_class($param)); |
|
549 | } |
|
550 | return $param; |
|
551 | } |
|
552 | } |
|
553 |
@@ 437-443 (lines=7) @@ | ||
434 | * @throws \UnexpectedValueException |
|
435 | * @return JWTParameter |
|
436 | */ |
|
437 | private static function _checkType(JWTParameter $param, $cls) { |
|
438 | if (!$param instanceof $cls) { |
|
439 | throw new \UnexpectedValueException( |
|
440 | "$cls expected, got " . get_class($param)); |
|
441 | } |
|
442 | return $param; |
|
443 | } |
|
444 | } |
|
445 |