Passed
Push — feature/0.7.0 ( f8dc8d...75a66b )
by Ryuichi
42:58
created

CustomControllerAnnotation::onInject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace WebStream\Annotation\Attributes\Custom;
3
4
use WebStream\Annotation\Base\Annotation;
5
use WebStream\Annotation\Base\IAnnotatable;
6
use WebStream\Annotation\Base\IMethods;
7
use WebStream\Annotation\Base\IRead;
8
use WebStream\Container\Container;
9
10
/**
11
 * @Annotation
12
 * @Target("METHOD")
13
 */
14
class CustomControllerAnnotation extends Annotation implements IMethods
15
{
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function onInject(array $injectAnnotation)
20
    {
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function onMethodInject(IAnnotatable $instance, \ReflectionMethod $method, Container $container)
27
    {
28
        echo "owata";
29
    }
30
}
31