Arrange   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 28
ccs 0
cts 8
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 2
A getMethods() 0 4 1
1
<?php
2
3
namespace Nikoms\PhpUnit\Annotation;
4
5
/**
6
 * @Annotation
7
 */
8
class Arrange
9
{
10
    /**
11
     * @var array
12
     */
13
    private $methods;
14
15
    /**
16
     * Arrange constructor.
17
     * @param array $values
18
     */
19
    public function __construct(array $values)
20
    {
21
        if (isset($values['value'])) {
22
            $this->methods[$values['value']] = null;
23
        } else {
24
            $this->methods = $values;
25
        }
26
    }
27
28
    /**
29
     * @return array
30
     */
31
    public function getMethods()
32
    {
33
        return $this->methods;
34
    }
35
}
36