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

Review::getReviewRating()   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
 * Review
7
 * 
8
 * @author Basil Suter <[email protected]>
9
 * @since 1.0.14
10
 */
11
class Review extends CreativeWork
12
{
13
    public function typeDefintion()
14
    {
15
        return 'Review';
16
    }
17
18
    private $_itemRevieved;
19
20
    /**
21
     * Set Item Reviewed
22
     *
23
     * @param Thing $itemReviewed
24
     * @return static
25
     */
26
    public function setItemReviewed(Thing $itemReviewed)
27
    {
28
        $this->_itemRevieved = $itemReviewed;
29
        return $this;
30
    }
31
32
    /**
33
     * Get Item Reviewed
34
     *
35
     * @return string
36
     */
37
    public function getItemReviewed()
38
    {
39
        return $this->_itemRevieved;
40
    }
41
42
    private $_reviewAspect;
43
44
    /**
45
     * Set review rating
46
     *
47
     * @param string $reviewAspect
48
     * @return static
49
     */
50
    public function setReviewAspect($reviewAspect)
51
    {
52
        $this->_reviewAspect = $reviewAspect;
53
        return $this;
54
    }
55
56
    /**
57
     * Get review aspect
58
     *
59
     * @return string
60
     */
61
    public function getReviewAspect()
62
    {
63
        return $this->_reviewAspect;
64
    }
65
66
    private $_reviewBody;
67
68
    /**
69
     * Set review body
70
     *
71
     * @param string $reviewBody
72
     * @return static
73
     */
74
    public function setReviewBody($reviewBody)
75
    {
76
        $this->_reviewBody = $reviewBody;
77
        return $this;
78
    }
79
80
    /**
81
     * Get review body
82
     *
83
     * @return string
84
     */
85
    public function getReviewBody()
86
    {
87
        return $this->_reviewBody;
88
    }
89
90
    private $_reviewRating;
91
92
    /**
93
     * Set review rating
94
     *
95
     * @param Rating $reviewRating
96
     * @return static
97
     */
98
    public function setReviewRating(Rating $reviewRating)
99
    {
100
        $this->_reviewRating = $reviewRating;
101
        return $this;
102
    }
103
104
    /**
105
     * Get Review Rating
106
     *
107
     * @return Rating
108
     */
109
    public function getReviewRating()
110
    {
111
        return $this->_reviewRating;
112
    }
113
}