Completed
Push — master ( 674c19...7898d5 )
by Tom
03:52
created

SimpleEntityWithGenericField::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace DoctrineModuleTest\Stdlib\Hydrator\Asset;
4
5
class SimpleEntityWithGenericField
6
{
7
    /**
8
     * @var int
9
     */
10
    protected $id;
11
12
    /**
13
     * @var float
14
     */
15
    protected $genericField;
16
17
    public function setId($id)
18
    {
19
        $this->id = $id;
20
    }
21
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    public function setGenericField($value)
28
    {
29
        $this->genericField = $value;
30
31
        return $this;
32
    }
33
34
    public function getGenericField()
35
    {
36
        return $this->genericField;
37
    }
38
}
39