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

Videos::format()   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 Videos extends Category
6
{
7
    const FORMAT_DVD = 'DVD';
8
    const FORMAT_LASER_DISC = 'Laser Disc';
9
    const FORMAT_VHS = 'VHS';
10
    const FORMAT_DOWNLOADABLE = 'Downloadable';
11
    const FORMAT_STREAMING = 'Streaming';
12
13
    protected $requiredAttributes = [
14
        'Format'
15
    ];
16
17
    public function format(string $format)
18
    {
19
        $this->attributes['Format'] = $format;
20
        return $this;
21
    }
22
}