GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 23c71a...dcb9a9 )
by Richard
11:04
created

User   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A jsonSerialize() 0 8 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: wechsler
5
 * Date: 29/12/2015
6
 * Time: 09:39
7
 */
8
9
namespace Phase\TakeATicketBundle\Entity;
10
11
use FOS\UserBundle\Model\User as BaseUser;
12
use Doctrine\ORM\Mapping as ORM;
13
use JsonSerializable;
14
15
/**
16
 * @ORM\Entity
17
 * @ORM\Table(name="fos_user")
18
 */
19
class User extends BaseUser implements JsonSerializable
20
{
21
    /**
22
     * @ORM\Id
23
     * @ORM\Column(type="integer")
24
     * @ORM\GeneratedValue(strategy="AUTO")
25
     */
26
    protected $id;
27
28
    public function __construct()
29
    {
30
        parent::__construct();
31
        // your own logic
32
    }
33
34
    /**
35
     * Specify data which should be serialized to JSON
36
     *
37
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php
38
     *
39
     * @return mixed data which can be serialized by <b>json_encode</b>,
40
     *               which is a value of any type other than a resource
41
     *
42
     * @since 5.4.0
43
     */
44
    public function jsonSerialize()
45
    {
46
        return [
47
            'id' => $this->id,
48
            'name' => $this->username,
49
            'email' => $this->email,
50
        ];
51
    }
52
}
53