Encoding::setEncodingTime()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the XabbuhPandaClient package.
5
 *
6
 * (c) Christian Flothmann <[email protected]>
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 Xabbuh\PandaClient\Model;
13
14
/**
15
 * Representation of a Video after it was encoded by applying a Profile.
16
 *
17
 * @author Christian Flothmann <[email protected]>
18
 */
19
class Encoding extends AbstractMedium
20
{
21
    private $videoId;
22
23
    private $profileId;
24
25
    private $profileName;
26
27
    private $encodingProgress;
28
29
    private $startedEncodingAt;
30
31
    private $encodingTime;
32
33
    private $files = array();
34
35
    public function getVideoId()
36
    {
37
        return $this->videoId;
38
    }
39
40
    public function setVideoId($videoId)
41
    {
42
        $this->videoId = $videoId;
43
    }
44
45
    public function getProfileId()
46
    {
47
        return $this->profileId;
48
    }
49
50
    public function setProfileId($profileId)
51
    {
52
        $this->profileId = $profileId;
53
    }
54
55
    public function getProfileName()
56
    {
57
        return $this->profileName;
58
    }
59
60
    public function setProfileName($profileName)
61
    {
62
        $this->profileName = $profileName;
63
    }
64
65
    public function getEncodingProgress()
66
    {
67
        return $this->encodingProgress;
68
    }
69
70
    public function setEncodingProgress($encodingProgress)
71
    {
72
        $this->encodingProgress = $encodingProgress;
73
    }
74
75
    public function getStartedEncodingAt()
76
    {
77
        return $this->startedEncodingAt;
78
    }
79
80
    public function setStartedEncodingAt($startedEncodingAt)
81
    {
82
        $this->startedEncodingAt = $startedEncodingAt;
83
    }
84
85
    public function getEncodingTime()
86
    {
87
        return $this->encodingTime;
88
    }
89
90
    public function setEncodingTime($encodingTime)
91
    {
92
        $this->encodingTime = $encodingTime;
93
    }
94
95
    public function getFiles()
96
    {
97
        return $this->files;
98
    }
99
100
    public function addFile($file)
101
    {
102
        $this->files[] = $file;
103
    }
104
105
    public function removeFile($file)
106
    {
107
        $key = array_search($file, $this->files);
108
109
        if (false !== $key) {
110
            unset($this->files[$key]);
111
        }
112
    }
113
114
    public function setFiles(array $files)
115
    {
116
        $this->files = $files;
117
    }
118
}
119