Test Failed
Pull Request — master (#74)
by Omid
21:41
created

Transcode   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getQuality() 0 4 1
A getProfileKey() 0 4 1
A getFileExtension() 0 4 1
A isCompleted() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MovingImage\Client\VMPro\Entity;
6
7
use JMS\Serializer\Annotation\SerializedName;
8
use JMS\Serializer\Annotation\Type;
9
use MovingImage\Meta\Interfaces\TranscodeInterface;
10
11
class Transcode implements TranscodeInterface
12
{
13
    /**
14
     * @Type("string")
15
     */
16
    private $quality;
17
18
    /**
19
     * @Type("string")
20
     * @SerializedName("profileKey")
21
     */
22
    private $profileKey;
23
24
    /**
25
     * @Type("string")
26
     * @SerializedName("fileExtension")
27
     */
28
    private $fileExtension;
29
30
    /**
31
     * @Type("boolean")
32
     * @SerializedName("transcodingCompleted")
33
     */
34
    private $completed;
35
36
    public function getQuality(): string
37
    {
38
        return $this->quality;
39
    }
40
41
    public function getProfileKey(): string
42
    {
43
        return $this->profileKey;
44
    }
45
46
    public function getFileExtension(): string
47
    {
48
        return $this->fileExtension;
49
    }
50
51
    public function isCompleted(): bool
52
    {
53
        return $this->completed;
54
    }
55
}
56