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

Clothing::material()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}