OpenGraphTag::getProperty()   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 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Novaway\Component\OpenGraph;
4
5
class OpenGraphTag implements OpenGraphTagInterface
6
{
7
    /** @var string */
8
    private $prefix;
9
10
    /** @var string */
11
    private $property;
12
13
    /** @var string */
14
    private $content;
15
16
17
    /**
18
     * Constructor
19
     *
20
     * @param string $prefix
21
     * @param string $property
22
     * @param string $content
23
     */
24
    public function __construct($prefix, $property, $content)
25
    {
26
        $this->prefix   = $prefix;
27
        $this->property = $property;
28
        $this->content  = $content;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getPrefix()
35
    {
36
        return $this->prefix;
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getProperty()
43
    {
44
        return $this->property;
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function getContent()
51
    {
52
        return $this->content;
53
    }
54
}
55