VideoFile::setFileType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 3
ccs 1
cts 1
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 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\Traits\Integers\IntegerHeightTrait;
15
use WBW\Library\Traits\Integers\IntegerIdTrait;
16
use WBW\Library\Traits\Integers\IntegerWidthTrait;
17
use WBW\Library\Traits\Strings\StringLinkTrait;
18
use WBW\Library\Traits\Strings\StringRawDataTrait;
19
20
/**
21
 * Video file.
22
 *
23
 * @author webeweb <https://github.com/webeweb>
24
 * @package WBW\Library\Pexels\Model
25
 */
26
class VideoFile {
27 1
28 1
    use IntegerHeightTrait;
29
    use IntegerIdTrait {
30
        setId as public;
31 1
    }
32 1
    use IntegerWidthTrait;
33
    use StringLinkTrait;
34
    use StringRawDataTrait;
35
36
    /**
37
     * File type.
38
     *
39
     * @var string|null
40
     */
41
    private $fileType;
42
43
    /**
44
     * Quality.
45
     *
46
     * @var string|null
47
     */
48
    private $quality;
49
50
    /**
51
     * Get the file type.
52
     *
53 15
     * @return string|null Returns the file type.
54 15
     */
55
    public function getFileType(): ?string {
56
        return $this->fileType;
57
    }
58
59
    /**
60
     * Get the quality.
61
     *
62 15
     * @return string|null Returns the quality.
63 15
     */
64
    public function getQuality(): ?string {
65
        return $this->quality;
66
    }
67
68
    /**
69
     * Set the file type.
70
     *
71
     * @param string|null $fileType The file type.
72 25
     * @return VideoFile Returns this video file.
73 25
     */
74 25
    public function setFileType(?string $fileType): VideoFile {
75
        $this->fileType = $fileType;
76
        return $this;
77
    }
78
79
    /**
80
     * Set the quality.
81
     *
82
     * @param string|null $quality Returns the quality.
83 25
     * @return VideoFile Returns this video file.
84 25
     */
85 25
    public function setQuality(?string $quality): VideoFile {
86
        $this->quality = $quality;
87
        return $this;
88
    }
89
}
90