Completed
Push — master ( 6c2dd9...ca8e19 )
by Eric
03:03
created

EncryptionConfigurationException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A undeterminedEncryption() 0 6 1
1
<?php
2
3
namespace Makuro\Directus\KeycloakClient\Provider\Exception;
4
5
use Exception;
6
7
class EncryptionConfigurationException extends Exception
8
{
9
    /**
10
     * Returns properly formatted exception when response decryption fails.
11
     *
12
     * @return EncryptionConfigurationException
13
     */
14
    public static function undeterminedEncryption()
15
    {
16
        return new static(
17
            'The given response may be encrypted and sufficient '.
18
            'encryption configuration has not been provided.',
19
            400
20
        );
21
    }
22
}
23