AuthorizationCode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 6
crap 2
1
<?php
2
/**
3
 * @author Stefano Torresi (http://stefanotorresi.it)
4
 * @license See the file LICENSE.txt for copying permission.
5
 * ************************************************
6
 */
7
8
namespace Thorr\OAuth2\Entity;
9
10
class AuthorizationCode extends AbstractToken
11
{
12
    use RedirectUriProviderTrait;
13
14
    /**
15
     * {@inheritdoc}
16
     *
17
     * @param string $redirectUri
18
     */
19
    public function __construct($uuid = null, $token, Client $client, UserInterface $user = null, $scopes = null, $redirectUri)
20
    {
21
        parent::__construct($uuid, $token, $client, $user, $scopes);
22
23
        $this->setRedirectUri($redirectUri);
24
    }
25
}
26