Passed
Push — master ( 34e964...fe2f0d )
by Orkhan
01:10
created

Currency   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 9
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace Orkhanahmadov\Currencylayer;
4
5
class Currency
6
{
7
    /**
8
     * @var array
9
     */
10
    private $quotes;
11
    /**
12
     * @var string
13
     */
14
    private $source;
15
    /**
16
     * @var int
17
     */
18
    private $timestamp;
19
    /**
20
     * @var string|null
21
     */
22
    private $date;
23
24
    public function __construct(array $quotes, string $source, int $timestamp, ?string $date = null)
25
    {
26
        $this->quotes = $quotes;
27
        $this->source = $source;
28
        $this->timestamp = $timestamp;
29
        $this->date = $date;
30
    }
31
}
32