Videos   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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