User   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
/*
4
 * (c) Jim Martens <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace TwoMartens\Bundle\CoreBundle\Model;
11
12
use Doctrine\Common\Collections\ArrayCollection;
13
use FOS\UserBundle\Model\User as FOSUser;
14
15
/**
16
 * Represents a user.
17
 *
18
 * @author    Jim Martens <[email protected]>
19
 * @copyright 2013-2015 Jim Martens
20
 */
21
class User extends FOSUser
22
{
23
    /**
24
     * the salt for the password
25
     * @var string|null
26
     */
27
    protected $salt;
28
29
    /**
30
     * Initializes the User object.
31
     */
32
    public function __construct()
33
    {
34
        // saves salt into user object
35
        // if bcrypt is used (default), salt should be null
36
        parent::__construct();
37
38
        $this->salt = null;
39
        // our users are always in groups
40
        $this->groups = new ArrayCollection();
41
    }
42
}
43