Completed
Push — master ( f90dd6...0a073f )
by WEBEWEB
05:01
created

VideoFile   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 4
dl 0
loc 62
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFileType() 0 3 1
A getQuality() 0 3 1
A setFileType() 0 4 1
A setQuality() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the pexels-library package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Pexels\Model;
13
14
use WBW\Library\Pexels\Traits\HeightTrait;
15
use WBW\Library\Pexels\Traits\IdTrait;
16
use WBW\Library\Pexels\Traits\LinkTrait;
17
use WBW\Library\Pexels\Traits\WidthTrait;
18
19
/**
20
 * Video file.
21
 *
22
 * @author webeweb <https://github.com/webeweb/>
23
 * @package WBW\Library\Pexels\Model
24
 */
25
class VideoFile {
26
27
    use HeightTrait;
28
    use IdTrait;
29
    use LinkTrait;
30
    use WidthTrait;
31
32
    /**
33
     * File type.
34
     *
35
     * @var string
36
     */
37
    private $fileType;
38
39
    /**
40
     * Quality.
41
     *
42
     * @var string
43
     */
44
    private $quality;
45
46
    /**
47
     * Get the file type.
48
     *
49
     * @return string Returns the file type.
50
     */
51
    public function getFileType() {
52
        return $this->fileType;
53
    }
54
55
    /**
56
     * Get the quality.
57
     *
58
     * @return string Returns the quality.
59
     */
60
    public function getQuality() {
61
        return $this->quality;
62
    }
63
64
    /**
65
     * Set the file type.
66
     *
67
     * @param string $fileType The file type.
68
     * @return VideoFile Returns this video file.
69
     */
70
    public function setFileType($fileType) {
71
        $this->fileType = $fileType;
72
        return $this;
73
    }
74
75
    /**
76
     * Set the quality.
77
     *
78
     * @param string $quality Returns the quality.
79
     * @return VideoFile Returns this video file.
80
     */
81
    public function setQuality($quality) {
82
        $this->quality = $quality;
83
        return $this;
84
    }
85
86
}
87