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

CurrencyValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
1
<?php
2
3
namespace luya\web\jsonld;
4
5
/**
6
 * The currency accepted.
7
 *
8
 * Use standard formats: ISO 4217 currency format e.g. "USD"; Ticker symbol for cryptocurrencies e.g. "BTC"; well known names 
9
 * for Local Exchange Tradings Systems (LETS) and other currency types e.g. "Ithaca HOUR".
10
 * 
11
 * @author Basil Suter <[email protected]>
12
 * @since 1.0.14
13
 */
14
class CurrencyValue extends BaseValue
15
{
16
    private $_currency;
17
18
    public function __construct($currency)
19
    {
20
        $this->_currency = $currency;    
21
    }
22
23
    public function getValue()
24
    {
25
        return $this->_currency;
26
    }
27
}