Node::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Novaway\Component\OpenGraph\Annotation;
4
5
/**
6
 * @Annotation
7
 * @Target({"CLASS", "PROPERTY", "METHOD"})
8
 */
9
class Node extends GraphNode
10
{
11
    /**
12
     * @Required
13
     * @var string
14
     */
15
    public $namespace;
16
17
    /**
18
     * @Required
19
     * @var string
20
     */
21
    public $tag;
22
23
    /** @var string */
24
    public $value;
25
26
27
    public function __construct(array $values = [])
28
    {
29
        parent::__construct($values['namespace'], $values['tag'], $values);
30
    }
31
}
32