Failed Conditions
Push — issue#666 ( 82e9d5...91903a )
by Guilherme
08:00
created

InvalidateSessionRequest::getPerson()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace LoginCidadao\CoreBundle\Entity;
12
13
use Doctrine\ORM\Mapping as ORM;
14
use LoginCidadao\CoreBundle\Model\PersonInterface;
15
16
/**
17
 * InvalidateSessionRequest
18
 *
19
 * @ORM\Table(name="invalidate_session_request")
20
 * @ORM\Entity(repositoryClass="LoginCidadao\CoreBundle\Entity\InvalidateSessionRequestRepository")
21
 */
22
class InvalidateSessionRequest
23
{
24
    /**
25
     * @var integer
26
     *
27
     * @ORM\Column(name="id", type="integer")
28
     * @ORM\Id
29
     * @ORM\GeneratedValue(strategy="AUTO")
30
     */
31
    private $id;
32
33
    /**
34
     * @var \DateTime
35
     *
36
     * @ORM\Column(name="requested_at", type="datetime")
37
     */
38
    private $requestedAt;
39
40
    /**
41
     * @var PersonInterface
42
     * @ORM\ManyToOne(targetEntity="LoginCidadao\CoreBundle\Entity\Person")
43
     * @ORM\JoinColumn(name="person_id", referencedColumnName="id")
44
     */
45
    private $person;
46
47
    /**
48
     * Get id
49
     *
50
     * @return integer 
51
     */
52
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
    /**
58
     * Set requestedAt
59
     *
60
     * @param \DateTime $requestedAt
61
     * @return InvalidateSessionRequest
62
     */
63
    public function setRequestedAt($requestedAt)
64
    {
65
        $this->requestedAt = $requestedAt;
66
67
        return $this;
68
    }
69
70
    /**
71
     * Get requestedAt
72
     *
73
     * @return \DateTime 
74
     */
75
    public function getRequestedAt()
76
    {
77
        return $this->requestedAt;
78
    }
79
80
    /**
81
     * Set person
82
     *
83
     * @param PersonInterface $person
84
     * @return InvalidateSessionRequest
85
     */
86
    public function setPerson($person)
87
    {
88
        $this->person = $person;
89
90
        return $this;
91
    }
92
93
    /**
94
     * Get person
95
     *
96
     * @return PersonInterface
97
     */
98
    public function getPerson()
99
    {
100
        return $this->person;
101
    }
102
}
103