Created   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 3 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * Created result
4
 * User: moyo
5
 * Date: 02/11/2017
6
 * Time: 3:03 PM
7
 */
8
9
namespace Carno\Database\Results;
10
11
class Created
12
{
13
    /**
14
     * @var int
15
     */
16
    private $id = null;
17
18
    /**
19
     * Created constructor.
20
     * @param int $id
21
     */
22
    public function __construct(int $id)
23
    {
24
        $this->id = $id;
25
    }
26
27
    /**
28
     * @return int
29
     */
30
    public function id() : int
31
    {
32
        return $this->id;
33
    }
34
}
35