Failed Conditions
Push — master ( 2ade86...13f838 )
by Jonathan
18s
created

Doctrine/Tests/Models/Navigation/NavCountry.php (2 issues)

Upgrade to new PHP Analysis Engine

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
The property $pois is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
27
28
    function __construct($name) {
0 ignored issues
show
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
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
}