Completed
Push — named_arg ( afd41e...aff435 )
by Akihito
04:36
created

Assisted::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di\Di;
6
7
use Attribute;
8
use Doctrine\Common\Annotations\NamedArgumentConstructorAnnotation;
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
 */
17
#[Attribute(Attribute::TARGET_METHOD)]
18
final class Assisted extends AbstractAssisted implements NamedArgumentConstructorAnnotation
19
{
20
    /** @var array */
21
    public $values;
22
23
    public function __construct(array $value)
24
    {
25
        $this->values = $value;
26
    }
27
}
28