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

tests/Doctrine/Tests/Models/Taxi/Car.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\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
The property $freeCarRides 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
    /**
29
     * @OneToMany(targetEntity="PaidRide", mappedBy="car")
30
     */
31
    private $carRides;
0 ignored issues
show
The property $carRides 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...
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