QueryCount::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 2
c 0
b 0
f 0
nc 2
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Liip/FunctionalTestBundle
7
 *
8
 * (c) Lukas Kahwe Smith <[email protected]>
9
 *
10
 * This source file is subject to the MIT license that is bundled
11
 * with this source code in the file LICENSE.
12
 */
13
14
namespace Liip\FunctionalTestBundle\Annotations;
15
16
/**
17
 * @Annotation
18
 * @Target({"METHOD"})
19
 */
20
final class QueryCount
21
{
22
    /** @var int */
23
    public $maxQueries;
24
25
    public function __construct(array $values)
26
    {
27
        if (isset($values['value'])) {
28
            $this->maxQueries = $values['value'];
29
        }
30
    }
31
}
32