Country::__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
/**
16
 * Created by Marcin.
17
 * Date: 30.11.2017
18
 * Time: 00:13
19
 */
20
21
namespace mrcnpdlk\Xmdb\Model\Tmdb;
22
23
24
class Country
25
{
26
    /**
27
     * ISO 3166 code
28
     *
29
     * @var string
30
     */
31
    public $id;
32
    /**
33
     * @var string
34
     */
35
    public $name;
36
37
    public function __construct(string $id, string $name)
38
    {
39
        $this->id   = $id;
40
        $this->name = $name;
41
    }
42
}
43