NamespaceNode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Novaway\Component\OpenGraph\Annotation;
4
5
use Doctrine\Common\Annotations\Annotation\Required;
6
7
/**
8
 * @Annotation
9
 * @Target({"CLASS"})
10
 */
11
class NamespaceNode
12
{
13
    /**
14
     * @Required
15
     * @var string
16
     */
17
    public $prefix;
18
19
    /**
20
     * @Required
21
     * @var string
22
     */
23
    public $uri;
24
25
26
    public function __construct(array $values)
27
    {
28
        $this->prefix = $values['prefix'];
29
        $this->uri    = $values['uri'];
30
    }
31
}
32