Completed
Push — master ( 500137...fb248f )
by Sebastian
03:50
created

DatedMoneySpecification::amount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A DatedMoneySpecification represents monetary values with optional start and
7
 * end dates. For example, this could represent an employee's salary over a
8
 * specific period of time. __Note:__ This type has been superseded by
9
 * [[MonetaryAmount]] use of that type is recommended
10
 *
11
 * @see http://schema.org/DatedMoneySpecification
12
 */
13
class DatedMoneySpecification extends StructuredValue
14
{
15
    /**
16
     * The amount of money.
17
     *
18
     * @param float|int $amount
19
     *
20
     * @return static
21
     *
22
     * @see http://schema.org/amount
23
     */
24
    public function amount($amount)
25
    {
26
        return $this->setProperty('amount', $amount);
27
    }
28
29
    /**
30
     * The currency in which the monetary amount is expressed (in 3-letter [ISO
31
     * 4217](http://en.wikipedia.org/wiki/ISO_4217) format).
32
     *
33
     * @param string $currency
34
     *
35
     * @return static
36
     *
37
     * @see http://schema.org/currency
38
     */
39
    public function currency($currency)
40
    {
41
        return $this->setProperty('currency', $currency);
42
    }
43
44
}
45