CodeChallenge   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCodeChallenge() 0 3 1
A getCodeChallengeMethod() 0 3 1
A __construct() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Alexandre
5
 * Date: 08/03/2018
6
 * Time: 21:17
7
 */
8
9
namespace OAuth2\Extensions\PKCE\Credentials;
10
11
12
/**
13
 * Class CodeChallenge
14
 * @package OAuth2\Extensions\PKCE\Credentials
15
 * @deprecated
16
 */
17
class CodeChallenge implements CodeChallengeInterface
0 ignored issues
show
Deprecated Code introduced by
The interface OAuth2\Extensions\PKCE\C...\CodeChallengeInterface has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

17
class CodeChallenge implements /** @scrutinizer ignore-deprecated */ CodeChallengeInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
18
{
19
    protected $codeChallenge;
20
    protected $codeChallengeMethod;
21
22
    public function __construct(string $codeChallenge, string $codeChallengeMethod)
23
    {
24
        $this->codeChallenge = $codeChallenge;
25
        $this->codeChallengeMethod = $codeChallengeMethod;
26
    }
27
28
    /**
29
     * @return mixed
30
     */
31
    public function getCodeChallenge(): string
32
    {
33
        return $this->codeChallenge;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getCodeChallengeMethod(): string
40
    {
41
        return $this->codeChallengeMethod;
42
    }
43
44
}