Passed
Pull Request — master (#285)
by Tim
05:22 queued 03:08
created

RequestDeniedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\Exception\Protocol;
6
7
use SimpleSAML\SAML2\Constants;
8
9
/**
10
 * A SAML error indicating that the SAML responder or SAML authority is able to process the request
11
 *   but has chosen not to respond.
12
 *
13
 * @package simplesamlphp/saml2
14
 */
15
class RequestDeniedException extends AbstractProtocolException
16
{
17
    /**
18
     * RequestDeniedException constructor.
19
     *
20
     * @param string $responsible A string telling who is responsible for this error. Can be one of the following:
21
     *   - \SimpleSAML\SAML2\Constants::STATUS_RESPONDER: in case the error is caused by this SAML responder.
22
     *   - \SimpleSAML\SAML2\Constants::STATUS_REQUESTER: in case the error is caused by the SAML requester.
23
     * @param string|null $message A short message explaining why this error happened.
24
     */
25
    public function __construct(string $responsible, string $message = null)
26
    {
27
        parent::__construct($responsible, Constants::STATUS_REQUEST_DENIED, $message);
28
    }
29
}
30