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.

GroupDefinitionAwareRollout::addGroupDefinition()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Opensoft\RolloutBundle\Rollout;
4
5
use Opensoft\Rollout\Rollout;
6
7
/**
8
 * Ease the way to define group definitions with a tagged service
9
 *
10
 * @author Richard Fullmer <[email protected]>
11
 */
12
class GroupDefinitionAwareRollout extends Rollout
13
{
14
    /**
15
     * @var GroupDefinitionInterface[]
16
     */
17
    protected $groupDefinitions;
18
19
    /**
20
     * @return GroupDefinitionInterface[]
21
     */
22
    public function getGroupDefinitions()
23
    {
24
        return $this->groupDefinitions;
25
    }
26
27
    /**
28
     * @param GroupDefinitionInterface $groupDefinition
29
     */
30
    public function addGroupDefinition(GroupDefinitionInterface $groupDefinition)
31
    {
32
        $this->groupDefinitions[] = $groupDefinition;
33
34
        $this->defineGroup($groupDefinition->getName(), $groupDefinition->getCallback());
35
    }
36
}
37