Network::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 2
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 Network
19
{
20
    /**
21
     * @var integer
22
     */
23
    public $id;
24
    /**
25
     * @var string
26
     */
27
    public $name;
28
29
    /**
30
     * Network constructor.
31
     *
32
     * @param int    $id
33
     * @param string $name
34
     */
35
    public function __construct(int $id, string $name)
36
    {
37
        $this->id   = $id;
38
        $this->name = $name;
39
    }
40
}
41