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

CodeChallenge::getCodeChallenge()   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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}