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

CurrencyValue::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
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
 * 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
}