Collection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
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 27
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 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
/**
16
 * Created by Marcin.
17
 * Date: 30.11.2017
18
 * Time: 00:10
19
 */
20
21
namespace mrcnpdlk\Xmdb\Model\Tmdb\Movie;
22
23
24
class Collection
25
{
26
    /**
27
     * @var integer
28
     */
29
    public $id;
30
    /**
31
     * @var string
32
     */
33
    public $name;
34
    /**
35
     * @var string
36
     */
37
    public $poster;
38
    /**
39
     * @var string
40
     */
41
    public $backdrop;
42
43
    public function __construct(int $id, string $name, string $poster = null, string $backdrop = null)
44
    {
45
        $this->id       = $id;
46
        $this->name     = $name;
47
        $this->poster   = $poster;
48
        $this->backdrop = $backdrop;
49
    }
50
}
51