A::setValue()   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 A
5
{
6
    /** @var mixed  */
7
    private mixed $value;
8
9
    /** @var mixed  */
10
    private mixed $otherValue;
11
12
    /**
13
     * A constructor.
14
     *
15
     * @param $value
16
     * @param $otherValue
17
     */
18
    public function __construct($value, $otherValue)
19
    {
20
        $this->value = $value;
21
        $this->otherValue = $otherValue;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getValue(): mixed
28
    {
29
        return $this->value;
30
    }
31
32
    /**
33
     * @param mixed $value
34
     */
35
    public function setValue(mixed $value): void
36
    {
37
        $this->value = $value;
38
    }
39
40
    /**
41
     * @return mixed
42
     */
43
    public function getOtherValue(): mixed
44
    {
45
        return $this->otherValue;
46
    }
47
48
    /**
49
     * @param mixed $otherValue
50
     */
51
    public function setOtherValue(mixed $otherValue): void
52
    {
53
        $this->otherValue = $otherValue;
54
    }
55
}
56