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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 43
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
getRecurrences() 0 1 ?
A __construct() 0 5 1
A getStartDate() 0 4 1
A getRrule() 0 4 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
}