Completed
Push — master ( 463605...f15859 )
by Guillaume
16:46
created

Campagne::getSendAt()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Starkerxp\CampagneBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Starkerxp\StructureBundle\Entity\Entity;
7
8
/**
9
 * Campagne.
10
 *
11
 * @ORM\Table(name="campagne", indexes={
12
 *  @ORM\Index(columns={"name"}),
13
 *  @ORM\Index(columns={"deleted"}),
14
 *  @ORM\Index(columns={"status"})
15
 * })
16
 * @ORM\Entity(repositoryClass="Starkerxp\CampagneBundle\Repository\CampagneRepository")
17
 */
18
class Campagne extends Entity
19
{
20
    const DRAFT = 'draft';
21
    const PENDING = 'pending';
22
    const SENT = 'send';
23
    const CANCEL = 'cancel';
24
    const ERROR = 'error';
25
26
    /**
27
     * @var int
28
     *
29
     * @ORM\Column(name="id", type="integer")
30
     * @ORM\Id
31
     * @ORM\GeneratedValue(strategy="AUTO")
32
     */
33
    protected $id;
34
35
    /**
36
     * @var string
37
     *
38
     * @ORM\Column(name="name", type="string", length=255)
39
     */
40
    protected $name;
41
42
    /**
43
     * @var bool
44
     *
45
     * @ORM\Column(name="deleted", type="boolean", nullable=true)
46
     */
47
    protected $deleted = false;
48
49
    /**
50
     * @var string
51
     *
52
     * @ORM\Column(name="status", type="string", length=255)
53
     */
54
    protected $status;
55
56
    /**
57
     * Get id.
58
     *
59
     * @return int
60
     */
61
    public function getId()
62
    {
63
        return $this->id;
64
    }
65
66
    /**
67
     * Get name.
68
     *
69
     * @return string
70
     */
71
    public function getName()
72
    {
73
        return $this->name;
74
    }
75
76
    /**
77
     * Set name.
78
     *
79
     * @param string $name
80
     *
81
     */
82
    public function setName($name)
83
    {
84
        $this->name = $name;
85
86
    }
87
88
    /**
89
     * Set status.
90
     *
91
     * @param string $status
92
     *
93
     */
94
    public function setStatus($status)
95
    {
96
        $this->status = $status;
97
    }
98
99
    /**
100
     * Get status.
101
     *
102
     * @return string
103
     */
104
    public function getStatus()
105
    {
106
        return $this->status;
107
    }
108
109
    /**
110
     * Set deleted.
111
     *
112
     * @param bool $deleted
113
     *
114
     */
115
    public function setDeleted($deleted)
116
    {
117
        $this->deleted = $deleted;
118
    }
119
120
    /**
121
     * Get deleted.
122
     *
123
     * @return bool
124
     */
125
    public function getDeleted()
126
    {
127
        return $this->deleted;
128
    }
129
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
130