• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

webeweb / pexels-library / 8264931651

13 Mar 2024 12:50PM UTC coverage: 97.216%. Remained the same
8264931651

push

github

webeweb
Update CHANGELOG

419 of 431 relevant lines covered (97.22%)

34.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Model/VideoFile.php
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

28
    use IntegerHeightTrait;
29
    use IntegerIdTrait {
30
        setId as public;
31
    }
32
    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
     * @return string|null Returns the file type.
54
     */
55
    public function getFileType(): ?string {
56
        return $this->fileType;
16✔
57
    }
58

59
    /**
60
     * Get the quality.
61
     *
62
     * @return string|null Returns the quality.
63
     */
64
    public function getQuality(): ?string {
65
        return $this->quality;
16✔
66
    }
67

68
    /**
69
     * Set the file type.
70
     *
71
     * @param string|null $fileType The file type.
72
     * @return VideoFile Returns this video file.
73
     */
74
    public function setFileType(?string $fileType): VideoFile {
75
        $this->fileType = $fileType;
32✔
76
        return $this;
32✔
77
    }
78

79
    /**
80
     * Set the quality.
81
     *
82
     * @param string|null $quality Returns the quality.
83
     * @return VideoFile Returns this video file.
84
     */
85
    public function setQuality(?string $quality): VideoFile {
86
        $this->quality = $quality;
32✔
87
        return $this;
32✔
88
    }
89
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc