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 — develop ( ee1b66...d8c12e )
by Borut
02:48
created

SettingEntity::setKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Application\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Setting Entity
9
 *
10
 * @ORM\Table(name="settings")
11
 * @ORM\Entity(repositoryClass="Application\Repository\SettingRepository")
12
 * @ORM\HasLifecycleCallbacks()
13
 *
14
 * @author Borut Balažek <[email protected]>
15
 */
16
class SettingEntity
17
    extends AbstractMeta
0 ignored issues
show
Coding Style introduced by
The extends keyword must be on the same line as the class name
Loading history...
18
{
19
    /**
20
     * @var integer
21
     *
22
     * @ORM\Column(name="id", type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue(strategy="IDENTITY")
25
     */
26
    protected $id;
27
28
    /**
29
     * @var string
30
     *
31
     * @ORM\Column(name="`key`", type="string", length=255)
32
     */
33
    protected $key;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(name="`value`", type="text", nullable=true)
39
     */
40
    protected $value;
41
42
    /**
43
     * @var \DateTime
44
     *
45
     * @ORM\Column(name="time_created", type="datetime")
46
     */
47
    protected $timeCreated;
48
49
    /**
50
     * @var \DateTime
51
     *
52
     * @ORM\Column(name="time_updated", type="datetime")
53
     */
54
    protected $timeUpdated;
55
56
    /**
57
     * @ORM\PreUpdate
58
     */
59
    public function preUpdate()
60
    {
61
        $this->setTimeUpdated(new \DateTime('now'));
62
    }
63
64
    /**
65
     * @ORM\PrePersist
66
     */
67
    public function prePersist()
68
    {
69
        $this->setTimeCreated(new \DateTime('now'));
70
        $this->setTimeUpdated(new \DateTime('now'));
71
    }
72
}
73