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.

ScheduledAction::getOffset()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the Global Trading Technologies Ltd workflow-extension-bundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 *
8
 * (c) fduch <[email protected]>
9
 *
10
 * Date: 20.09.16
11
 */
12
13
namespace Gtt\Bundle\WorkflowExtensionsBundle\Schedule\ValueObject;
14
15
use Gtt\Bundle\WorkflowExtensionsBundle\Action\ValueObject\Action;
16
use DateInterval;
17
18
/**
19
 * Data Value Object represents scheduled action
20
 *
21
 * @author fduch <[email protected]>
22
 */
23
class ScheduledAction extends Action
24
{
25
    /**
26
     * Offset for transition
27
     *
28
     * @var DateInterval
29
     */
30
    private $offset;
31
32
    /**
33
     * Flag defines current scheduled action can be rescheduled or not
34
     *
35
     * @var boolean
36
     */
37
    private $isReschedulable;
38
39
    public function __construct($name, array $arguments, $offset, $isReschedulable = false)
40
    {
41
        parent::__construct($name, $arguments);
42
        $this->offset          = new DateInterval($offset);
43
        $this->isReschedulable = $isReschedulable;
44
    }
45
46
    /**
47
     * Returns offset date interval
48
     *
49
     * @return DateInterval
50
     */
51
    public function getOffset()
52
    {
53
        return $this->offset;
54
    }
55
56
    /**
57
     * @return boolean
58
     */
59
    public function isReschedulable()
60
    {
61
        return $this->isReschedulable;
62
    }
63
}