Passed
Pull Request — master (#48)
by
unknown
12:04
created

TVSeasonItemChanges::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
nc 2
nop 3
dl 0
loc 6
ccs 0
cts 6
cp 0
crap 6
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the Tmdb package.
4
 *
5
 * (c) Vincent Faliès <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author Vincent Faliès <[email protected]>
11
 * @copyright Copyright (c) 2017-2021
12
 */
13
14
15
namespace VfacTmdb\Items;
16
17
use VfacTmdb\Abstracts\Items\ItemChanges;
18
use VfacTmdb\Exceptions\TmdbException;
19
use VfacTmdb\Interfaces\TmdbInterface;
20
21
/**
22
 * TV Season Item Changes class
23
 * @package Tmdb
24
 * @author Steve Richter <[email protected]>
25
 * @copyright Copyright (c) 2021
26
 */
27
class TVSeasonItemChanges extends ItemChanges
28
{
29
    /**
30
     * Constructor
31
     * @param TmdbInterface $tmdb
32
     * @param int $season_id
33
     * @param array $options
34
     */
35
    public function __construct(TmdbInterface $tmdb, int $season_id, array $options = array())
36
    {
37
        try {
38
            parent::__construct($tmdb, 'tv/season', $season_id, $options);
39
        } catch (TmdbException $ex) {
40
            throw $ex;
41
        }
42
    }
43
}
44