Completed
Push — master ( dad334...685d59 )
by Alberto
02:51
created

Stub::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Moka\Stub;
5
6
class Stub
7
{
8
    /**
9
     * @var string
10
     */
11
    private $methodName;
12
13
    /**
14
     * @var mixed
15
     */
16
    private $methodValue;
17
18
    /**
19
     * Stub constructor.
20
     * @param string $methodName
21
     * @param mixed $methodValue
22
     */
23 8
    public function __construct(string $methodName, $methodValue)
24
    {
25 8
        $this->methodName = $methodName;
26 8
        $this->methodValue = $methodValue;
27
    }
28
29
30
    /**
31
     * @return string
32
     */
33 7
    public function getMethodName(): string
34
    {
35 7
        return $this->methodName;
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41 7
    public function getMethodValue()
42
    {
43 7
        return $this->methodValue;
44
    }
45
}
46