NamespaceNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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