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
Pull Request — 1.x (#220)
by Eric
37:59 queued 34:57
created

ProviderChain   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProviders() 0 4 1
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Faker\Provider;
13
14
/**
15
 * Calls multiple Faker providers instances in a chain.
16
 *
17
 * This class accepts multiple instances of Faker providers to be passed to the constructor.
18
 *
19
 * @author Théo FIDRY <[email protected]>
20
 */
21
class ProviderChain
22
{
23
    /**
24
     * @var array
25
     */
26
    private $providers;
27
28
    /**
29
     * @param array $providers
30
     */
31 123
    public function __construct(array $providers)
32
    {
33 123
        $this->providers = $providers;
34 123
    }
35
36
    /**
37
     * @return array
38
     */
39 123
    public function getProviders()
40
    {
41 123
        return $this->providers;
42
    }
43
}
44