Passed
Pull Request — master (#317)
by Tim
12:30
created

ProtocolViolationException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\Exception;
6
7
/**
8
 * This exception may be raised when a violation of the SAML2 specification is detected
9
 *
10
 * @package simplesamlphp/saml2
11
 */
12
class ProtocolViolationException extends RuntimeException
13
{
14
    /**
15
     * @param string $message
16
     */
17
    public function __construct(string $message = null)
18
    {
19
        parent::__construct($message ?? static::DEFAULT_MESSAGE);
0 ignored issues
show
Bug introduced by
The constant SimpleSAML\SAML2\Excepti...eption::DEFAULT_MESSAGE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
20
    }
21
}
22