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\Navigation; |
||
4 | |||
5 | /** |
||
6 | * @Entity |
||
7 | * @Table(name="navigation_countries") |
||
8 | */ |
||
9 | class NavCountry |
||
10 | { |
||
11 | /** |
||
12 | * @Id |
||
13 | * @Column(type="integer") |
||
14 | * @generatedValue |
||
15 | */ |
||
16 | private $id; |
||
17 | |||
18 | /** |
||
19 | * @Column(type="string") |
||
20 | */ |
||
21 | private $name; |
||
22 | |||
23 | /** |
||
24 | * @OneToMany(targetEntity="NavPointOfInterest", mappedBy="country") |
||
25 | */ |
||
26 | private $pois; |
||
0 ignored issues
–
show
|
|||
27 | |||
28 | function __construct($name) { |
||
0 ignored issues
–
show
|
|||
29 | $this->name = $name; |
||
30 | } |
||
31 | |||
32 | public function getId() { |
||
33 | return $this->id; |
||
34 | } |
||
35 | |||
36 | public function getName() { |
||
37 | return $this->name; |
||
38 | } |
||
39 | } |
This check marks private properties in classes that are never used. Those properties can be removed.