Completed
Push — master ( 3ac73a...fa1a4d )
by Irsad
42:40 queued 27:07
created

undeterminedEncryption()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace IrsadArief\OAuth2\Client\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 \Stevenmaguire\OAuth2\Client\Provider\Exception\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