Image   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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\Imdb;
16
17
/**
18
 * Class Image
19
 *
20
 * @package mrcnpdlk\Xmdb\Model\Imdb
21
 */
22
class Image
23
{
24
    /**
25
     * @var integer
26
     */
27
    public $width;
28
    /**
29
     * @var integer
30
     */
31
    public $height;
32
    /**
33
     * @var string
34
     */
35
    public $url;
36
37
    /**
38
     * Image constructor.
39
     *
40
     * @param string   $url
41
     * @param int|null $width
42
     * @param int|null $height
43
     */
44
    public function __construct(string $url, int $width = null, int $height = null)
45
    {
46
        $this->width  = $width;
47
        $this->height = $height;
48
        $this->url    = $url;
49
    }
50
}
51