Rating::__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
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * Created by Marcin.
4
 * Date: 10.12.2017
5
 * Time: 00:27
6
 */
7
8
namespace mrcnpdlk\Xmdb\Model\Omdb;
9
10
11
class Rating
12
{
13
    /**
14
     * @var string
15
     */
16
    public $source;
17
    /**
18
     * @var string
19
     */
20
    public $value;
21
22
    /**
23
     * Rating constructor.
24
     *
25
     * @param string      $source
26
     * @param string|null $value
27
     */
28
    public function __construct(string $source, string $value = null)
29
    {
30
        $this->source = $source;
31
        $this->value  = $value;
32
    }
33
}
34