Completed
Push — master ( 455d10...08399b )
by Shcherbak
01:22
created

IntObject::value()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Funivan\CabbageCore\Int\IntObject;
6
7
class IntObject implements IntInterface
8
{
9
10
    /**
11
     * @var int
12
     */
13
    private $value;
14
15
    /**
16
     * @param int $value
17
     */
18 1
    public function __construct(int $value)
19
    {
20 1
        $this->value = $value;
21 1
    }
22
23 1
    public function value(): int
24
    {
25 1
        return $this->value;
26
    }
27
}