Completed
Push — master ( 92472c...fe56a0 )
by Vitaly
02:18
created

Route::toMethodMetadata()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Vitaly Iegorov
5
 * Date: 07.08.2016
6
 * Time: 11:55.
7
 */
8
namespace samsonframework\container\annotation;
9
10
use samsonframework\container\metadata\ClassMetadata;
11
12
/**
13
 * Class Route.
14
 *
15
 * @Annotation
16
 */
17
class Route extends CollectionValue implements MethodInterface
18
{
19
    /** @var string Route path */
20
    protected $path;
21
22
    /** @var string Route identifier */
23
    protected $identifier;
24
25
    /**
26
     * Route constructor.
27
     *
28
     * @param $path
29
     */
30
    public function __construct($scopeOrScopes)
31
    {
32
        parent::__construct($scopeOrScopes);
33
34
    }
35
36
    /**
37
     * Convert to class metadata.
38
     *
39
     * @param ClassMetadata $metadata Input metadata
40
     *
41
     * @return ClassMetadata Annotation conversion to metadata
42
     */
43
    public function toMethodMetadata(ClassMetadata $metadata)
44
    {
45
        // TODO: Implement toMetadata() method.
46
    }
47
}
48