These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\DashboardBundle\Entity; |
||
4 | |||
5 | use Doctrine\ORM\Mapping as ORM; |
||
6 | use Kunstmaan\AdminBundle\Entity\AbstractEntity; |
||
7 | |||
8 | /** |
||
9 | * AnalyticsGoal |
||
10 | * |
||
11 | * @ORM\Table(name="kuma_analytics_goal") |
||
12 | * @ORM\Entity(repositoryClass="Kunstmaan\DashboardBundle\Repository\AnalyticsGoalRepository") |
||
13 | */ |
||
14 | class AnalyticsGoal extends AbstractEntity |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\ManyToOne(targetEntity="AnalyticsOverview", inversedBy="goals") |
||
18 | * @ORM\JoinColumn(name="overview_id", referencedColumnName="id") |
||
19 | */ |
||
20 | private $overview; |
||
21 | |||
22 | /** |
||
23 | * @var integer |
||
24 | * |
||
25 | * @ORM\Column(name="position", type="integer") |
||
26 | */ |
||
27 | private $position; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | * |
||
32 | * @ORM\Column(name="name", type="string", length=255) |
||
33 | */ |
||
34 | private $name; |
||
35 | |||
36 | /** |
||
37 | * @var integer |
||
38 | * |
||
39 | * @ORM\Column(name="visits", type="integer") |
||
40 | */ |
||
41 | private $visits; |
||
42 | |||
43 | /** |
||
44 | * @var array |
||
45 | * |
||
46 | * @ORM\Column(name="chart_data", type="text") |
||
47 | */ |
||
48 | private $chartData = ''; |
||
49 | |||
50 | /** |
||
51 | * Get overview |
||
52 | * |
||
53 | * @return integer |
||
54 | */ |
||
55 | public function getOverview() |
||
56 | { |
||
57 | return $this->overview; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * Set overview |
||
62 | * |
||
63 | * @param integer $overview |
||
64 | * |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setOverview($overview) |
||
68 | { |
||
69 | $this->overview = $overview; |
||
70 | |||
71 | return $this; |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * Set position |
||
76 | * |
||
77 | * @param integer $position |
||
78 | * @return AnalyticsGoal |
||
79 | */ |
||
80 | public function setPosition($position) |
||
81 | { |
||
82 | $this->position = $position; |
||
83 | |||
84 | return $this; |
||
85 | } |
||
86 | |||
87 | /** |
||
88 | * Get position |
||
89 | * |
||
90 | * @return integer |
||
91 | */ |
||
92 | public function getPosition() |
||
93 | { |
||
94 | return $this->position; |
||
95 | } |
||
96 | |||
97 | /** |
||
98 | * Set name |
||
99 | * |
||
100 | * @param string $name |
||
101 | * @return AnalyticsGoal |
||
102 | */ |
||
103 | public function setName($name) |
||
104 | { |
||
105 | $this->name = $name; |
||
106 | |||
107 | return $this; |
||
108 | } |
||
109 | |||
110 | /** |
||
111 | * Get name |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | public function getName() |
||
116 | { |
||
117 | return $this->name; |
||
118 | } |
||
119 | |||
120 | /** |
||
121 | * Set visits |
||
122 | * |
||
123 | * @param integer $visits |
||
124 | * @return AnalyticsGoal |
||
125 | */ |
||
126 | public function setVisits($visits) |
||
127 | { |
||
128 | $this->visits = $visits; |
||
129 | |||
130 | return $this; |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * Get visits |
||
135 | * |
||
136 | * @return integer |
||
137 | */ |
||
138 | public function getVisits() |
||
139 | { |
||
140 | return number_format($this->visits); |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * Set chartData |
||
145 | * |
||
146 | * @param string $chartData |
||
147 | * @return AnalyticsGoal |
||
148 | */ |
||
149 | public function setChartData($chartData) |
||
150 | { |
||
151 | $this->chartData = $chartData; |
||
0 ignored issues
–
show
|
|||
152 | |||
153 | return $this; |
||
154 | } |
||
155 | |||
156 | /** |
||
157 | * Get chartData |
||
158 | * |
||
159 | * @return string |
||
160 | */ |
||
161 | public function getChartData() |
||
162 | { |
||
163 | return $this->chartData; |
||
164 | } |
||
165 | } |
||
166 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..