ActiveVideo   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 38
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A isActive() 0 4 1
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