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
Push — master ( 75bdf9...8faa57 )
by joseph
83:56 queued 81:04
created

EntityInterfaceCreator::configurePipeline()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Src\Entity\Interfaces;
4
5
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\AbstractCreator;
6
use EdmondsCommerce\DoctrineStaticMeta\CodeGeneration\Creation\Process\ReplaceEntitiesSubNamespaceProcess;
7
8
class EntityInterfaceCreator extends AbstractCreator
9
{
10
    public const FIND_NAME = 'TemplateEntityInterface';
11
12
    public const TEMPLATE_PATH = self::ROOT_TEMPLATE_PATH . '/src/Entity/Interfaces/' . self::FIND_NAME . '.php';
13
    /**
14
     * @var string
15
     */
16
    private $entityFqn;
17
18 4
    public function configurePipeline(): void
19
    {
20 4
        parent::configurePipeline();
21 4
        $this->registerReplaceEntitiesNamespaceProcess();
22 4
    }
23
24 4
    protected function registerReplaceEntitiesNamespaceProcess(): void
25
    {
26 4
        $process = new ReplaceEntitiesSubNamespaceProcess();
27 4
        $process->setEntityFqn(
28 4
            $this->entityFqn ?? $this->namespaceHelper->getEntityFqnFromEntityInterfaceFqn($this->newObjectFqn)
29
        );
30 4
        $this->pipeline->register($process);
31 4
    }
32
33 2
    public function setNewObjectFqnFromEntityFqn(string $entityFqn): self
34
    {
35 2
        $this->entityFqn    = $entityFqn;
36 2
        $this->newObjectFqn = $this->namespaceHelper->getEntityInterfaceFromEntityFqn($entityFqn);
37
38 2
        return $this;
39
    }
40
}
41