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

LocalBusinessTrait::getCurrenciesAccepted()   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
 * Local Business Trait
7
 * 
8
 * @author Basil Suter <[email protected]>
9
 * @since 1.0.14
10
 */
11
trait LocalBusinessTrait
12
{
13
    private $_currenciesAccpeted;
14
    /**
15
     * Set accepted currencies
16
     *
17
     * @param CurrencyValue $currency
18
     * @return static
19
     */
20
    public function setCurrenciesAccepted(CurrencyValue $currency)
21
    {
22
        $this->_currenciesAccpeted = $currency->getValue();
23
24
        return $this;
25
    }
26
27
    /**
28
     * Get accepted currencies
29
     *
30
     * @return string
31
     */
32
    public function getCurrenciesAccepted()
33
    {
34
        return $this->_currenciesAccpeted;
35
    }
36
37
    private $_openingHours;
38
39
    /**
40
     * Set Opening Hours
41
     *
42
     * @param OpeningHoursValue $openingHours
43
     * @return static
44
     */
45
    public function setOpeningHours(OpeningHoursValue $openingHours)
46
    {
47
        $this->_openingHours = $openingHours->getValue();
48
49
        return $this;
50
    }
51
52
    /**
53
     * Get opening hours
54
     *
55
     * @return string
56
     */
57
    public function getOpeningHours()
58
    {
59
        return $this->_openingHours;
60
    }
61
62
    private $_paymentAccepted;
63
64
    /**
65
     * Set Payment Accepted
66
     *
67
     * @param string $payment
68
     * @return static
69
     */
70
    public function setPaymentAccepted($payment)
71
    {
72
        $this->_paymentAccepted = $payment;
73
74
        return $this;
75
    }
76
77
    /**
78
     * Get payment Accepted
79
     *
80
     * @return string
81
     */
82
    public function getPaymentAccepted()
83
    {
84
        return $this->_paymentAccepted;
85
    }
86
87
    private $_priceRange;
88
89
    /**
90
     * Set Price range
91
     *
92
     * @param string $priceRange
93
     * @return static
94
     */
95
    public function setPriceRange($priceRange)
96
    {
97
        $this->_priceRange = $priceRange;
98
99
        return $this;
100
    }
101
102
    /**
103
     * Get price range
104
     *
105
     * @return string
106
     */
107
    public function getPriceRange()
108
    {
109
        return $this->_priceRange;
110
    }
111
}