Completed
Push — master ( 1910c5...2d50e1 )
by Basil
53:47
created

LanguageValue::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace luya\web\jsonld;
4
5
/**
6
 * Language value
7
 * 
8
 * 
9
 * @see https://tools.ietf.org/html/bcp47
10
 * @see https://schema.org/availableLanguage
11
 * 
12
 * @author Basil Suter <[email protected]>
13
 * @since 1.0.14
14
 */
15
class LanguageValue extends BaseValue
16
{
17
    private $_language;
18
19
    public function __construct($langauge)
20
    {
21
        $this->_language = $langauge;
22
    }
23
24
    public function getValue()
25
    {
26
        // RFC VALIDATION
27
        return $this->_language;
28
    }
29
}