Season   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 41
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
/**
3
 * xMDB-API
4
 *
5
 * Copyright © 2017 pudelek.org.pl 
6
 *  
7
 * @license MIT License (MIT)
8
 *  
9
 * For the full copyright and license information, please view source file 
10
 * that is bundled with this package in the file LICENSE
11
 *
12
 * @author Marcin Pudełek <[email protected]>
13
 */
14
15
namespace mrcnpdlk\Xmdb\Model\Tmdb\TvShow;
16
17
18
class Season
19
{
20
    /**
21
     * @var integer
22
     */
23
    public $id;
24
    /**
25
     * @var integer
26
     */
27
    public $seasonNumber;
28
    /**
29
     * @var integer|null
30
     */
31
    public $episodeCount;
32
    /**
33
     * @var string|null
34
     */
35
    public $airDate;
36
    /**
37
     * @var  string|null
38
     */
39
    public $poster;
40
41
    /**
42
     * Season constructor.
43
     *
44
     * @param int         $id
45
     * @param int         $seasonNumber
46
     * @param int|null    $episodeCount
47
     * @param string|null $airDate
48
     * @param string|null $poster
49
     */
50
    public function __construct(int $id, int $seasonNumber, int $episodeCount = null, string $airDate = null, string $poster = null)
51
    {
52
        $this->id           = $id;
53
        $this->seasonNumber = $seasonNumber;
54
        $this->episodeCount = $episodeCount;
55
        $this->airDate      = $airDate;
56
        $this->poster       = $poster;
57
    }
58
}
59