User   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 3
dl 0
loc 16
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 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
use Thorr\Persistence\Entity\AbstractEntity;
11
12
class User extends AbstractEntity implements ThirdPartyAwareUserInterface
13
{
14
    use UserTrait;
15
    use ThirdPartyAwareTrait;
16
17
    public function __construct($uuid = null, $password = null)
18
    {
19
        parent::__construct($uuid);
20
21
        if ($password) {
22
            $this->setPassword($password);
23
        }
24
25
        $this->initThirdPartyCredentials();
26
    }
27
}
28