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

MonetaryAmountDistribution   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A currency() 0 4 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