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

ArrayOfWebinars   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 9
c 1
b 0
f 0
dl 0
loc 26
ccs 0
cts 7
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTotal() 0 3 1
A getWebinars() 0 3 1
1
<?php
2
3
4
namespace slavkluev\Bizon365\Models;
5
6
class ArrayOfWebinars extends Base
7
{
8
    protected $count;
9
    protected $list;
10
11
    public static $nestedModels = [
12
        'list' => [
13
            'class' => Webinar::class,
14
            'array' => true,
15
        ],
16
    ];
17
18
    /**
19
     * @return int
20
     */
21
    public function getTotal()
22
    {
23
        return $this->count;
24
    }
25
26
    /**
27
     * @return Webinar[]
28
     */
29
    public function getWebinars()
30
    {
31
        return $this->list;
32
    }
33
}
34