Completed
Push — master ( fd0635...f2796c )
by Tom
06:08
created

MonetaryAmountDistribution::currency()   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 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A statistical distribution of monetary amounts.
7
 *
8
 * @see http://schema.org/MonetaryAmountDistribution
9
 *
10
 * @mixin \Spatie\SchemaOrg\QuantitativeValueDistribution
11
 */
12
class MonetaryAmountDistribution extends BaseType
13
{
14
    /**
15
     * The currency in which the monetary amount is expressed.
16
     * 
17
     * Use standard formats: [ISO 4217 currency
18
     * format](http://en.wikipedia.org/wiki/ISO_4217) e.g. "USD"; [Ticker
19
     * symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for
20
     * cryptocurrencies e.g. "BTC"; well known names for [Local Exchange
21
     * Tradings
22
     * Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system)
23
     * (LETS) and other currency types e.g. "Ithaca HOUR".
24
     *
25
     * @param string|string[] $currency
26
     *
27
     * @return static
28
     *
29
     * @see http://schema.org/currency
30
     */
31
    public function currency($currency)
32
    {
33
        return $this->setProperty('currency', $currency);
34
    }
35
36
}
37