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

Doctrine/Tests/Models/Navigation/NavPhotos.php (1 issue)

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_photos")
8
 */
9
class NavPhotos
10
{
11
    /**
12
     * @Id
13
     * @column(type="integer")
14
     * @generatedValue
15
     */
16
    private $id;
17
18
    /**
19
     * @ManyToOne(targetEntity="NavPointOfInterest")
20
     * @JoinColumns({
21
     *   @JoinColumn(name="poi_long", referencedColumnName="nav_long"),
22
     *   @JoinColumn(name="poi_lat", referencedColumnName="nav_lat")
23
     * })
24
     */
25
    private $poi;
26
27
    /**
28
     * @column(type="string", name="file_name")
29
     */
30
    private $file;
31
32
    function __construct($poi, $file) {
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...
33
        $this->poi = $poi;
34
        $this->file = $file;
35
    }
36
37
    public function getId() {
38
        return $this->id;
39
    }
40
41
    public function getPointOfInterest() {
42
        return $this->poi;
43
    }
44
45
    public function getFile() {
46
        return $this->file;
47
    }
48
}