Completed
Push — master ( edf824...39509c )
by Julito
10:53
created

Promotion::setCreatedAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
use Gedmo\Timestampable\Traits\TimestampableEntity;
8
9
/**
10
 * Promotion.
11
 *
12
 * @ORM\Table(name="promotion")
13
 * @ORM\Entity
14
 */
15
class Promotion
16
{
17
    use TimestampableEntity;
18
19
    /**
20
     * @var int
21
     *
22
     * @ORM\Column(name="id", type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue()
25
     */
26
    protected $id;
27
28
    /**
29
     * @var string
30
     *
31
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
32
     */
33
    protected $name;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(name="description", type="text", nullable=false)
39
     */
40
    protected $description;
41
42
    /**
43
     * @var Career
44
     *
45
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Career")
46
     * @ORM\JoinColumn(name="career_id", referencedColumnName="id")
47
     */
48
    protected $career;
49
50
    /**
51
     * @var int
52
     *
53
     * @ORM\Column(name="status", type="integer", nullable=false)
54
     */
55
    protected $status;
56
57
    /**
58
     * Get id.
59
     *
60
     * @return int
61
     */
62
    public function getId()
63
    {
64
        return $this->id;
65
    }
66
67
    /**
68
     * Set name.
69
     *
70
     * @param string $name
71
     *
72
     * @return Promotion
73
     */
74
    public function setName($name)
75
    {
76
        $this->name = $name;
77
78
        return $this;
79
    }
80
81
    /**
82
     * Get name.
83
     *
84
     * @return string
85
     */
86
    public function getName()
87
    {
88
        return $this->name;
89
    }
90
91
    /**
92
     * Set description.
93
     *
94
     * @param string $description
95
     *
96
     * @return Promotion
97
     */
98
    public function setDescription($description)
99
    {
100
        $this->description = $description;
101
102
        return $this;
103
    }
104
105
    /**
106
     * Get description.
107
     *
108
     * @return string
109
     */
110
    public function getDescription()
111
    {
112
        return $this->description;
113
    }
114
115
    /**
116
     * Set career.
117
     *
118
     * @param Career $career
119
     *
120
     * @return Promotion
121
     */
122
    public function setCareer($career)
123
    {
124
        $this->career = $career;
125
126
        return $this;
127
    }
128
129
    /**
130
     * Get career.
131
     *
132
     * @return Career
133
     */
134
    public function getCareer()
135
    {
136
        return $this->career;
137
    }
138
139
    /**
140
     * Set status.
141
     *
142
     * @param int $status
143
     *
144
     * @return Promotion
145
     */
146
    public function setStatus($status)
147
    {
148
        $this->status = $status;
149
150
        return $this;
151
    }
152
153
    /**
154
     * Get status.
155
     *
156
     * @return int
157
     */
158
    public function getStatus()
159
    {
160
        return $this->status;
161
    }
162
}
163