Product   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 5
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 36
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setName() 0 4 1
A getName() 0 4 1
A setDateOfBirth() 0 4 1
A getDateOfBirth() 0 4 1
1
<?php
2
3
namespace Managlea\Tests\Models;
4
5
6
/**
7
 * @Entity
8
 * @Table(name="product")
9
 **/
10
class Product
11
{
12
    /** @Id @Column(type="integer") @GeneratedValue * */
13
    protected $id;
14
15
    /** @Column(type="string") * */
16
    protected $name;
17
18
    /** @Column(name="date_of_birth", type="string", nullable=true) * */
19
    protected $dateOfBirth;
20
21
    public function getId()
22
    {
23
        return $this->id;
24
    }
25
26
    public function setName($name)
27
    {
28
        $this->name = $name;
29
    }
30
31
    public function getName()
32
    {
33
        return $this->name;
34
    }
35
36
    public function setDateOfBirth($dateOfBirth)
37
    {
38
        $this->dateOfBirth = $dateOfBirth;
39
    }
40
41
    public function getDateOfBirth()
42
    {
43
        return $this->dateOfBirth;
44
    }
45
}