Passed
Push — master ( fd01cd...a8d522 )
by Alexandre
02:26
created

CodeChallenge   A

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
class CodeChallenge implements CodeChallengeInterface
13
{
14
    protected $codeChallenge;
15
    protected $codeChallengeMethod;
16
17
    public function __construct(string $codeChallenge, string $codeChallengeMethod)
18
    {
19
        $this->codeChallenge = $codeChallenge;
20
        $this->codeChallengeMethod = $codeChallengeMethod;
21
    }
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getCodeChallenge(): string
27
    {
28
        return $this->codeChallenge;
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getCodeChallengeMethod(): string
35
    {
36
        return $this->codeChallengeMethod;
37
    }
38
39
}