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

Brand   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A aggregateRating() 0 4 1
A logo() 0 4 1
A review() 0 4 1
A slogan() 0 4 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A brand is a name used by an organization or business person for labeling a
7
 * product, product group, or similar.
8
 *
9
 * @see http://schema.org/Brand
10
 *
11
 * @mixin \Spatie\SchemaOrg\Intangible
12
 */
13
class Brand extends BaseType
14
{
15
    /**
16
     * The overall rating, based on a collection of reviews or ratings, of the
17
     * item.
18
     *
19
     * @param AggregateRating|AggregateRating[] $aggregateRating
20
     *
21
     * @return static
22
     *
23
     * @see http://schema.org/aggregateRating
24
     */
25
    public function aggregateRating($aggregateRating)
26
    {
27
        return $this->setProperty('aggregateRating', $aggregateRating);
28
    }
29
30
    /**
31
     * An associated logo.
32
     *
33
     * @param ImageObject|ImageObject[]|string|string[] $logo
34
     *
35
     * @return static
36
     *
37
     * @see http://schema.org/logo
38
     */
39
    public function logo($logo)
40
    {
41
        return $this->setProperty('logo', $logo);
42
    }
43
44
    /**
45
     * A review of the item.
46
     *
47
     * @param Review|Review[] $review
48
     *
49
     * @return static
50
     *
51
     * @see http://schema.org/review
52
     */
53
    public function review($review)
54
    {
55
        return $this->setProperty('review', $review);
56
    }
57
58
    /**
59
     * A slogan or motto associated with the item.
60
     *
61
     * @param string|string[] $slogan
62
     *
63
     * @return static
64
     *
65
     * @see http://schema.org/slogan
66
     */
67
    public function slogan($slogan)
68
    {
69
        return $this->setProperty('slogan', $slogan);
70
    }
71
72
}
73