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.

AbstractRule::getRecurrences()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
nc 1
1
<?php
2
3
namespace Scheduler\Job;
4
5
use DateTimeInterface;
6
7
/**
8
 * Class AbstractRule
9
 * @package Scheduler\Job
10
 * @author Aleh Hutnikau, <[email protected]>
11
 */
12
abstract class AbstractRule implements RRuleInterface
13
{
14
    /** @var DateTimeInterface|string  */
15
    protected $startDate;
16
17
    /** @var string  */
18
    protected $rRule;
19
20
    /**
21
     * Rule constructor.
22
     * @param string $rRule
23
     * @param string|DateTimeInterface $startDate
24
     */
25 25
    public function __construct($rRule, DateTimeInterface $startDate)
26
    {
27 25
        $this->rRule = $rRule;
28 25
        $this->startDate = $startDate;
29 25
    }
30
31
    /**
32
     * @return DateTimeInterface
33
     */
34 24
    public function getStartDate()
35
    {
36 24
        return $this->startDate;
37
    }
38
39
    /**
40
     * @return string recurrence rule string
41
     */
42 24
    public function getRrule()
43
    {
44 24
        return $this->rRule;
45
    }
46
47
    /**
48
     * @param DateTimeInterface $from
49
     * @param DateTimeInterface $to
50
     * @param boolean $inc
51
     * @return DateTimeInterface[]
52
     */
53
    abstract public function getRecurrences(DateTimeInterface $from, DateTimeInterface $to, $inc = true);
54
}