Completed
Pull Request — master (#290)
by
unknown
36:49 queued 34:03
created

ProductView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sylius\SyliusShopApiPlugin\View;
6
7
class ProductView
8
{
9
    /**
10
     * @var string
11
     */
12
    public $code;
13
14
    /**
15
     * @var string
16
     */
17
    public $name;
18
19
    /**
20
     * @var string
21
     */
22
    public $slug;
23
24
    /**
25
     * @var string
26
     */
27
    public $breadcrumb;
28
29
    /**
30
     * @var string
31
     */
32
    public $description;
33
34
    /**
35
     * @var string
36
     */
37
    public $shortDescription;
38
39
    /**
40
     * @var string
41
     */
42
    public $metaKeywords;
43
44
    /**
45
     * @var string
46
     */
47
    public $metaDescription;
48
49
    /**
50
     * @var string
51
     */
52
    public $averageRating;
53
54
    /**
55
     * @var ProductTaxonView
56
     */
57
    public $taxons;
58
59
    /**
60
     * @var array
61
     */
62
    public $variants = [];
63
64
    /**
65
     * @var array
66
     */
67
    public $attributes = [];
68
69
    /**
70
     * @var array
71
     */
72
    public $associations = [];
73
74
    /**
75
     * @var array
76
     */
77
    public $images = [];
78
79
    public function __construct()
80
    {
81
        $this->taxons = new ProductTaxonView();
82
    }
83
}
84