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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

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