• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

little-apps / LittleJWT / 4857817515

pending completion
4857817515

push

github

Nick H
Moved mutator extraction to seperate trait

936 of 1131 relevant lines covered (82.76%)

27.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Exceptions/IncompatibleHashAlgorithmJWK.php
1
<?php
2

3
namespace LittleApps\LittleJWT\Exceptions;
4

5
use Exception;
6

7
/**
8
 * This exception is thrown when the JWT is tried to be verified with an incompatible hash algorithm.
9
 */
10
class IncompatibleHashAlgorithmJWK extends Exception
11
{
12
    /**
13
     * Base exception that caused this to be thrown.
14
     *
15
     * @var Exception
16
     */
17
    protected $baseException;
18

19
    public function __construct(Exception $e)
20
    {
21
        parent::__construct('The hash algorithm is incompatible with the provided JWK.');
×
22

23
        $this->baseException = $e;
×
24
    }
25

26
    /**
27
     * Gets base exception.
28
     *
29
     * @return Exception
30
     */
31
    public function getBaseException()
32
    {
33
        return $this->baseException;
×
34
    }
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc