Passed
Pull Request — master (#8)
by Managlea
03:35
created

Product   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 31
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\Model;
4
5
6
class Product
7
{
8
    protected $id;
9
    protected $name;
10
    protected $dateOfBirth;
11
12
    public function getId()
13
    {
14
        return $this->id;
15
    }
16
17
    public function setName($name)
18
    {
19
        $this->name = $name;
20
    }
21
22
    public function getName()
23
    {
24
        return $this->name;
25
    }
26
27
    public function setDateOfBirth($dateOfBirth)
28
    {
29
        $this->dateOfBirth = $dateOfBirth;
30
    }
31
32
    public function getDateOfBirth()
33
    {
34
        return $this->dateOfBirth;
35
    }
36
}