FakeMock   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 41
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
1
<?php
2
3
namespace Er1z\FakeMock\Annotations;
4
5
use Doctrine\Common\Annotations\Annotation;
6
7
/**
8
 * Class FakeAnnotation.
9
 *
10
 * @Annotation()
11
 */
12
class FakeMock
13
{
14
    /**
15
     * use asserts within field type guessing process.
16
     *
17
     * @var bool
18
     */
19
    public $useAsserts = true;
20
21
    /**
22
     * consider conditions such as LowerThan, EqualsTo as to be satisfied.
23
     *
24
     * @var bool
25
     */
26
    public $satisfyAssertsConditions = true;
27
28
    /**
29
     * Map interfaces/abstracts/so on to desired classes.
30
     *
31
     * @var string[]
32
     */
33
    public $classMappings = [];
34
35
    /**
36
     * Map sub-objects if class type is specified.
37
     *
38
     * @var bool
39
     */
40
    public $recursive = true;
41
42
    /**
43
     * Locale to generate string for.
44
     *
45
     * @var null|string
46
     */
47
    public $locale = null;
48
49 330
    public function __construct($data = [])
50
    {
51 330
        foreach ($data as $k => $v) {
52 16
            $this->$k = $v;
53
        }
54 330
    }
55
}
56