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.

AbstractFakerDataProvider::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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