Completed
Push — master ( 29a402...dad334 )
by Alberto
16s
created

Stub   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 40
c 0
b 0
f 0
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMethodName() 0 4 1
A getMethodValue() 0 4 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