Wine::winery()   A
last analyzed

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 Wine extends Category
6
{
7
    public function region(string $region)
8
    {
9
        $this->attributes['Region'] = $region;
10
        return $this;
11
    }
12
13
    public function varietal(string $varietal)
14
    {
15
        $this->attributes['Varietal'] = $varietal;
16
        return $this;
17
    }
18
19
    public function volume(string $volume)
20
    {
21
        $this->attributes['Volume'] = $volume;
22
        return $this;
23
    }
24
25
    public function winery(string $winery)
26
    {
27
        $this->attributes['Winery'] = $winery;
28
        return $this;
29
    }
30
}