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 Doctrine\Tests\Models\Taxi; |
||
4 | |||
5 | /** |
||
6 | * @Entity |
||
7 | * @Table(name="taxi_car") |
||
8 | */ |
||
9 | class Car |
||
10 | { |
||
11 | /** |
||
12 | * @Id |
||
13 | * @Column(type="string", length=25) |
||
14 | * @GeneratedValue(strategy="NONE") |
||
15 | */ |
||
16 | private $brand; |
||
17 | |||
18 | /** |
||
19 | * @Column(type="string", length=255); |
||
20 | */ |
||
21 | private $model; |
||
22 | |||
23 | /** |
||
24 | * @OneToMany(targetEntity="Ride", mappedBy="car") |
||
25 | */ |
||
26 | private $freeCarRides; |
||
0 ignored issues
–
show
|
|||
27 | |||
28 | /** |
||
29 | * @OneToMany(targetEntity="PaidRide", mappedBy="car") |
||
30 | */ |
||
31 | private $carRides; |
||
0 ignored issues
–
show
|
|||
32 | |||
33 | public function getBrand() |
||
34 | { |
||
35 | return $this->brand; |
||
36 | } |
||
37 | |||
38 | public function setBrand($brand) |
||
39 | { |
||
40 | $this->brand = $brand; |
||
41 | } |
||
42 | |||
43 | public function setModel($model) |
||
44 | { |
||
45 | $this->model = $model; |
||
46 | } |
||
47 | } |
||
48 |
This check marks private properties in classes that are never used. Those properties can be removed.