Arrange::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
cc 2
eloc 5
nc 2
nop 1
crap 6
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