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.
Passed
Pull Request — master (#59)
by joseph
18:36
created

AbstractFakerDataProvider::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\Entity\Fields\FakerData;
4
5
use Faker\Generator;
6
7
abstract class AbstractFakerDataProvider implements FakerDataProviderInterface
8
{
9
    /**
10
     * @var Generator
11
     */
12
    protected $generator;
13
14 22
    public function __construct(Generator $generator)
15
    {
16 22
        $this->generator = $generator;
17 22
    }
18
19
    /**
20
     * This magic method means that the object is callable like a closure,
21
     * and when that happens this invoke method is called.
22
     *
23
     * This method should return your fake data. You can use the generator to pull fake data from if that is useful
24
     *
25
     * @return mixed
26
     */
27
    abstract public function __invoke();
28
}
29