GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

EncodingStatus   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 11
c 1
b 0
f 1
dl 0
loc 32
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A fromArray() 0 6 1
1
<?php
2
3
namespace ApiVideo\Client\Model;
4
5
class EncodingStatus
6
{
7
    /** @var boolean */
8
    public $playable;
9
    /** @var array */
10
    public $qualities;
11
    /** @var array */
12
    public $metadata;
13
14
    /**
15
     * VideoEncoding constructor.
16
     * @param bool  $playable
17
     * @param array $qualities
18
     * @param array $metadata
19
     */
20
    public function __construct($playable, array $qualities, array $metadata)
21
    {
22
        $this->playable  = $playable;
23
        $this->qualities = $qualities;
24
        $this->metadata  = $metadata;
25
    }
26
27
    /**
28
     * @param array $data
29
     * @return EncodingStatus
30
     */
31
    public static function fromArray(array $data)
32
    {
33
        return new self(
34
            $data['playable'],
35
            $data['qualities'],
36
            $data['metadata']
37
        );
38
    }
39
}