GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( a41792...2c7b14 )
by Mario
02:15
created

ExportCriteria::getTo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Netgen\InformationCollection\API\Value\Export;
6
7
use DateTimeInterface;
8
use eZ\Publish\API\Repository\Values\Content\Content;
9
use Netgen\InformationCollection\API\Value\ValueObject;
10
11
class ExportCriteria extends ValueObject
12
{
13
    /**
14
     * @var \eZ\Publish\API\Repository\Values\Content\Content
15
     */
16
    protected $content;
17
18
    /**
19
     * @var \DateTimeInterface
20
     */
21
    protected $from;
22
23
    /**
24
     * @var \DateTimeInterface
25
     */
26
    protected $to;
27
28
    /**
29
     * @var int
30
     */
31
    protected $offset;
32
33
    /**
34
     * @var int
35
     */
36
    protected $limit;
37
38
    public function __construct(Content $content, DateTimeInterface $from, DateTimeInterface $to, int $offset, int $limit)
39
    {
40
        $this->content = $content;
41
        $this->from = $from;
42
        $this->to = $to;
43
        $this->offset = $offset;
44
        $this->limit = $limit;
45
    }
46
47
    /**
48
     * @return \eZ\Publish\API\Repository\Values\Content\Content
49
     */
50
    public function getContent(): Content
51
    {
52
        return $this->content;
53
    }
54
55
    /**
56
     * @return \DateTimeInterface
57
     */
58
    public function getFrom(): DateTimeInterface
59
    {
60
        return $this->from;
61
    }
62
63
    /**
64
     * @return \DateTimeInterface
65
     */
66
    public function getTo(): DateTimeInterface
67
    {
68
        return $this->to;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getOffset(): int
75
    {
76
        return $this->offset;
77
    }
78
79
    /**
80
     * @return int
81
     */
82
    public function getLimit(): int
83
    {
84
        return $this->limit;
85
    }
86
}
87