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::getProviders()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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