CampaignTarget   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 135
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 135
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getDateLastExited() 0 4 1
A setDateLastExited() 0 6 1
A getManuallyRemoved() 0 4 1
A setManuallyRemoved() 0 6 1
A getManuallyAdded() 0 4 1
A setManuallyAdded() 0 6 1
A getCampaign() 0 4 1
A setCampaign() 0 6 1
1
<?php
2
3
namespace Starkerxp\CampaignBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Starkerxp\StructureBundle\Entity\AbstractUser;
7
8
/**
9
 * CampaignTarget
10
 *
11
 * @ORM\Table(name="campaign_target", indexes={
12
 *  @ORM\Index(columns={"uuid"}),
13
 *  @ORM\Index(columns={"created_at"}),
14
 *  @ORM\Index(columns={"updated_at"})
15
 * })
16
 * @ORM\Entity(repositoryClass="Starkerxp\CampaignBundle\Repository\CampaignTargetRepository")
17
 */
18
class CampaignTarget extends AbstractUser
19
{
20
    //@todo remplacer cible par une gestion avec de 'lead' et 'leadAction'
21
    /**
22
     * @var bool
23
     *
24
     * @ORM\Column(name="lead_id", type="integer", length=11, nullable=true)
25
     */
26
    protected $lead;
27
28
    /**
29
     * @var Campaign
30
     *
31
     * @ORM\ManyToOne(targetEntity="Campaign", cascade="persist", inversedBy="targets")
32
     * @ORM\JoinColumn(name="campaign_id", referencedColumnName="id", nullable=false)
33
     */
34
    protected $campaign;
35
36
    /**
37
     * @var \DateTime
38
     *
39
     * @ORM\Column(name="date_last_exited", type="datetime", nullable=true)
40
     */
41
    protected $dateLastExited = null;
42
43
    /**
44
     * @var bool
45
     *
46
     * @ORM\Column(name="manually_removed", type="boolean", options={"default": false})
47
     */
48
    protected $manuallyRemoved = false;
49
50
    /**
51
     * @var bool
52
     *
53
     * @ORM\Column(name="manually_added", type="boolean", options={"default": false})
54
     */
55
    protected $manuallyAdded = false;
56
57
    /**
58
     * Get dateLastExited
59
     *
60
     * @return \DateTime
61
     */
62
    public function getDateLastExited()
63
    {
64
        return $this->dateLastExited;
65
    }
66
67
    /**
68
     * Set dateLastExited
69
     *
70
     * @param \DateTime $dateLastExited
71
     *
72
     * @return CampaignTarget
73
     */
74
    public function setDateLastExited($dateLastExited)
75
    {
76
        $this->dateLastExited = $dateLastExited;
77
78
        return $this;
79
    }
80
81
    /**
82
     * Get manuallyRemoved
83
     *
84
     * @return boolean
85
     */
86
    public function getManuallyRemoved()
87
    {
88
        return $this->manuallyRemoved;
89
    }
90
91
    /**
92
     * Set manuallyRemoved
93
     *
94
     * @param boolean $manuallyRemoved
95
     *
96
     * @return CampaignTarget
97
     */
98
    public function setManuallyRemoved($manuallyRemoved)
99
    {
100
        $this->manuallyRemoved = $manuallyRemoved;
101
102
        return $this;
103
    }
104
105
    /**
106
     * Get manuallyAdded
107
     *
108
     * @return boolean
109
     */
110
    public function getManuallyAdded()
111
    {
112
        return $this->manuallyAdded;
113
    }
114
115
    /**
116
     * Set manuallyAdded
117
     *
118
     * @param boolean $manuallyAdded
119
     *
120
     * @return CampaignTarget
121
     */
122
    public function setManuallyAdded($manuallyAdded)
123
    {
124
        $this->manuallyAdded = $manuallyAdded;
125
126
        return $this;
127
    }
128
129
    /**
130
     * Get campaign
131
     *
132
     * @return \Starkerxp\CampaignBundle\Entity\Campaign
133
     */
134
    public function getCampaign()
135
    {
136
        return $this->campaign;
137
    }
138
139
    /**
140
     * Set campaign
141
     *
142
     * @param \Starkerxp\CampaignBundle\Entity\Campaign $campaign
143
     *
144
     * @return CampaignTarget
145
     */
146
    public function setCampaign(\Starkerxp\CampaignBundle\Entity\Campaign $campaign)
147
    {
148
        $this->campaign = $campaign;
149
150
        return $this;
151
    }
152
}
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...
153