Created::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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