Wine   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A varietal() 0 4 1
A volume() 0 4 1
A region() 0 4 1
A winery() 0 4 1
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
}