Completed
Push — master ( 2fb104...0c9ed9 )
by Basil
03:25
created

AggregateRating::getReviewCount()   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
 * JsonLd AggregateRating.
7
 *
8
 * @see http://schema.org/AggregateRating
9
 * @author Basil Suter <[email protected]>
10
 * @since 1.0.3
11
 */
12
class AggregateRating extends Rating
13
{
14
    /**
15
     * @inheritdoc
16
     */
17
    public function typeDefintion()
18
    {
19
        return 'AggregateRating';
20
    }
21
22
    private $_itemReviewed;
23
24
    /**
25
     * Set item reviewed
26
     *
27
     * @param ThingInterface $thing
28
     * @return static
29
     */
30
    public function setItemReviewed(ThingInterface $thing)
31
    {
32
        $this->_itemReviewed = $thing;
33
        return $this;
34
    }
35
36
    /**
37
     * Getter item reviewed
38
     *
39
     * @return ThingInterface
40
     */
41
    public function getItemReviewed()
42
    {
43
        $this->_itemReviewed;
44
    }
45
46
    private $_ratingCount;
47
48
    /**
49
     * Set rating count
50
     *
51
     * @param integer $ratingCount
52
     * @return static
53
     */
54
    public function setRatingCount($ratingCount)
55
    {
56
        $this->_ratingCount = (int) $ratingCount;
57
        return $this;
58
    }
59
60
    /**
61
     * Get Rating count
62
     *
63
     * @return integer
64
     */
65
    public function getRatingCount()
66
    {
67
        return $this->_ratingCount;
68
    }
69
70
    private $_reviewCount;
71
72
    /**
73
     * Set Review Count
74
     *
75
     * @param integer $reviewCount
76
     * @return static
77
     */
78
    public function setReviewCount($reviewCount)
79
    {
80
        $this->_reviewCount = (int) $reviewCount;
81
        return $this;
82
    }
83
84
    /**
85
     * Get Review count
86
     *
87
     * @return integer
88
     */
89
    public function getReviewCount()
90
    {
91
        return $this->_reviewCount;
92
    }
93
}
94