Completed
Pull Request — master (#6)
by Michał
01:51
created

CategoryId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
1
<?php
2
namespace Barenote\Domain\Identity;
3
4
/**
5
 * Class CategoryId
6
 * @package Barenote\Domain\Identity
7
 */
8
class CategoryId
9
{
10
    /**
11
     * @var int
12
     */
13
    private $value;
14
15
    /**
16
     * CategoryId constructor.
17
     * @param $value
18
     */
19
    public function __construct($value)
20
    {
21
        $this->value = $value;
22
    }
23
24
    /**
25
     * @return int
26
     */
27
    public function getValue()
28
    {
29
        return $this->value;
30
    }
31
32
}