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

LanguageValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

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