B::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
4
class B
5
{
6
    /** @var mixed  */
7
    private mixed $value;
8
9
    /**
10
     * B constructor.
11
     *
12
     * @param null $value
13
     */
14
    public function __construct($value = null)
15
    {
16
        $this->value = $value;
17
    }
18
19
    /**
20
     * @return mixed
21
     */
22
    public function getValue(): mixed
23
    {
24
        return $this->value;
25
    }
26
27
    /**
28
     * @param mixed $value
29
     */
30
    public function setValue(mixed $value): void
31
    {
32
        $this->value = $value;
33
    }
34
}
35