Completed
Push — master ( 0ae653...b8e04d )
by Viacheslav
01:59
created

ArrayOfViewers::fromResponse()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 10
cc 2
nc 2
nop 1
crap 6
1
<?php
2
3
4
namespace slavkluev\Bizon365\Models;
5
6
class ArrayOfViewers extends Base
7
{
8
    protected $total;
9
    protected $viewers;
10
11
    public static $nestedModels = [
12
        'viewers' => [
13
            'class' => Viewer::class,
14
            'array' => true,
15
        ],
16
    ];
17
18
    /**
19
     * @return int
20
     */
21
    public function getTotal()
22
    {
23
        return $this->total;
24
    }
25
26
    /**
27
     * @return Viewer[]
28
     */
29
    public function getViewers()
30
    {
31
        return $this->viewers;
32
    }
33
}
34