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

Parameter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getReflection() 0 3 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 Parameter extends Annotation
21
{
22 4
    public function __construct(iterable $annotations, \ReflectionParameter $reflection)
23
    {
24 4
        $this->reflection = $reflection;
25 4
        parent::__construct($annotations);
26 4
    }
27
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 4
    public function getReflection(): \ReflectionParameter
33
    {
34 4
        return $this->reflection;
35
    }
36
}
37