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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 21
rs 10
c 0
b 0
f 0
ccs 0
cts 3
cp 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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