Failed Conditions
Pull Request — master (#174)
by Łukasz
03:53 queued 01:04
created

ProductVariantView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Sylius\ShopApiPlugin\View;
4
5
class ProductVariantView
6
{
7
    /**
8
     * @var string
9
     */
10
    public $code;
11
12
    /**
13
     * @var string
14
     */
15
    public $name;
16
17
    /**
18
     * @var array
19
     */
20
    public $axis = [];
21
22
    /**
23
     * @var array
24
     */
25
    public $nameAxis = [];
26
27
    /**
28
     * @var PriceView
29
     */
30
    public $price;
31
32
    /**
33
     * @var array
34
     */
35
    public $images = [];
36
37
    /**
38
     * @var array
39
     */
40
    public $appliedPromotions = [];
41
42
    public function __construct()
43
    {
44
        $this->price = new PriceView();
45
    }
46
}
47