ActiveVideo::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Realshadow\Redtube\Entities;
4
5
use Illuminate\Support\Collection;
6
use JMS\Serializer\Annotation as JMS;
7
8
9
/**
10
 * Active Video
11
 *
12
 * @package Realshadow\Redtube\Entities
13
 * @author Lukáš Homza <[email protected]>
14
 *
15
 * @JMS\XmlRoot("active")
16
 */
17
class ActiveVideo
18
{
19
20
    /**
21
     * @var string $id
22
     *
23
     * @JMS\XmlElement()
24
     * @JMS\Type("integer")
25
     * @JMS\SerializedName("video_id")
26
     */
27
    protected $id;
28
29
    /**
30
     * @var boolean $active
31
     *
32
     * @JMS\XmlElement()
33
     * @JMS\Type("boolean")
34
     * @JMS\SerializedName("is_active")
35
     */
36
    protected $active;
37
38
    /**
39
     * @return string
40
     */
41
    public function getId()
42
    {
43
        return $this->id;
44
    }
45
46
    /**
47
     * @return bool
48
     */
49
    public function isActive()
50
    {
51
        return $this->active;
52
    }
53
54
}
55