Driver::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Khepin\Fixture\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * @ORM\Entity
9
 */
10
class Driver
11
{
12
    /**
13
     * @ORM\Column(name="id", type="integer")
14
     * @ORM\Id
15
     * @ORM\GeneratedValue(strategy="AUTO")
16
     */
17
    private $id;
18
19
    /**
20
     * @ORM\ManyToOne(targetEntity="Car")
21
     */
22
    private $car;
23
24
    /**
25
     * @ORM\ManyToOne(targetEntity="Car")
26
     * @ORM\JoinColumn(nullable=true)
27
     */
28
    private $secondCar;
29
30
    /**
31
     * @ORM\Column(type="string")
32
     * @var type
33
     */
34
    private $name;
35
36
    public function getId()
37
    {
38
        return $this->id;
39
    }
40
41
    public function setCar(Car $car)
42
    {
43
        $this->car = $car;
44
    }
45
46
    public function getCar()
47
    {
48
        return $this->car;
49
    }
50
51
    public function getName()
52
    {
53
        return $this->name;
54
    }
55
56
    public function setName($name)
57
    {
58
        $this->name = $name;
59
    }
60
61
    public function setSecondCar($secondCar)
62
    {
63
        $this->secondCar = $secondCar;
64
    }
65
66
    public function getSecondCar()
67
    {
68
        return $this->secondCar;
69
    }
70
}
71