A   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 50
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A getOtherValue() 0 3 1
A setValue() 0 3 1
A setOtherValue() 0 3 1
A __construct() 0 4 1
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