Passed
Push — master ( dcae43...a2c429 )
by Warrick
01:37
created

Clothing   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 22
dl 0
loc 55
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A ageGroup() 0 4 1
A size() 0 4 1
A pattern() 0 4 1
A colour() 0 4 1
A sizeType() 0 4 1
A gender() 0 4 1
A style() 0 4 1
A material() 0 4 1
1
<?php
2
3
namespace TPG\Pcflib\Categories;
4
5
class Clothing extends Category
6
{
7
    protected $requiredAttributes = [
8
        'AgeGroup',
9
        'Colour',
10
        'Gender',
11
        'Size',
12
    ];
13
14
    public function ageGroup(string $ageGroup)
15
    {
16
        $this->attributes['AgeGroup'] = $ageGroup;
17
        return $this;
18
    }
19
20
    public function colour(string $colour)
21
    {
22
        $this->attributes['Colour'] = $colour;
23
        return $this;
24
    }
25
26
    public function gender(string $gender)
27
    {
28
        $this->attributes['Gender'] = $gender;
29
        return $this;
30
    }
31
32
    public function size(string $size)
33
    {
34
        $this->attributes['Size'] = $size;
35
        return $this;
36
    }
37
38
    public function material(string $material)
39
    {
40
        $this->attributes['Material'] = $material;
41
        return $this;
42
    }
43
44
    public function pattern(string $pattern)
45
    {
46
        $this->attributes['Pattern'] = $pattern;
47
        return $this;
48
    }
49
50
    public function sizeType(string $sizeType)
51
    {
52
        $this->attributes['SizeType'] = $sizeType;
53
        return $this;
54
    }
55
56
    public function style(string $style)
57
    {
58
        $this->attributes['style'] = $style;
59
        return $this;
60
    }
61
}