Passed
Push — master ( bf73f2...5f1838 )
by Divine Niiquaye
11:16
created

Class_::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
c 2
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Biurad opensource projects.
7
 *
8
 * PHP version 7.2 and above required
9
 *
10
 * @author    Divine Niiquaye Ibok <[email protected]>
11
 * @copyright 2019 Biurad Group (https://biurad.com/)
12
 * @license   https://opensource.org/licenses/BSD-3-Clause License
13
 *
14
 * For the full copyright and license information, please view the LICENSE
15
 * file that was distributed with this source code.
16
 */
17
18
namespace Biurad\Annotations\Locate;
19
20
class Class_ extends Annotation
21
{
22
    /** @var Constant[] */
23
    public $constants = [];
24
25
    /** @var Method[] */
26
    public $methods = [];
27
28
    /** @var Property[] */
29
    public $properties = [];
30
31 6
    public function __construct(iterable $annotations, \ReflectionClass $reflection)
32
    {
33 6
        $this->reflection = $reflection;
34 6
        parent::__construct($annotations);
35 6
    }
36
37 3
    public function getReflection(): \ReflectionClass
38
    {
39 3
        return $this->reflection;
40
    }
41
}
42