SearchResponseLinks::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 5
crap 1
1
<?php
2
/**
3
 * MOJEPANSTWO-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
declare (strict_types=1);
16
17
namespace mrcnpdlk\MojePanstwo\Model;
18
19
/**
20
 * Class SearchResponseLinks
21
 *
22
 * @package mrcnpdlk\MojePanstwo\Model
23
 */
24
class SearchResponseLinks
25
{
26
    /**
27
     * Link do bieżacej strony wyników
28
     *
29
     * @var string
30
     */
31
    public $self;
32
    /**
33
     * Link do poprzedniej strony wyników
34
     *
35
     * @var string
36
     */
37
    public $prev;
38
    /**
39
     * Link do pierwszej strony wyników
40
     *
41
     * @var string
42
     */
43
    public $first;
44
    /**
45
     * Link do następnej strony wyników
46
     *
47
     * @var string
48
     */
49
    public $next;
50
    /**
51
     * Link do ostatniej strony wyników
52
     *
53
     * @var string
54
     */
55
    public $last;
56
57
    /**
58
     * SearchResponseLinks constructor.
59
     *
60
     * @param string|null $self
61
     * @param string|null $first
62
     * @param string|null $next
63
     * @param string|null $last
64
     * @param string|null $prev
65
     */
66 6
    public function __construct(string $self = null, string $first = null, string $next = null, string $last = null, string $prev = null)
67
    {
68 6
        $this->self  = $self;
69 6
        $this->first = $first;
70 6
        $this->next  = $next;
71 6
        $this->last  = $last;
72 6
        $this->prev  = $prev;
73 6
    }
74
}
75