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

CustomControllerAnnotation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onMethodInject() 0 3 1
A onInject() 0 2 1
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