Assisted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\Di;
6
7
use Attribute;
8
use Doctrine\Common\Annotations\Annotation\NamedArgumentConstructor;
9
use Ray\Aop\Annotation\AbstractAssisted;
10
11
/**
12
 * Annotates your class methods into which the Injector should pass the values on method invocation
13
 *
14
 * @Annotation
15
 * @Target("METHOD")
16
 * @NamedArgumentConstructor
17
 */
18
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_PARAMETER)]
19
final class Assisted extends AbstractAssisted
20
{
21
    /** @var array<string> */
22
    public $values;
23
24
    /**
25
     * @param array<string> $value
26
     */
27
    public function __construct($value = [])
28
    {
29
        $this->values = $value;
30
    }
31
}
32