Passed
Push — feature/gacela-file-cache ( 052688...3add24 )
by Chema
07:28 queued 04:02
created

ModuleGFacade   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A loadGacelaCacheFile() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleG;
6
7
use Gacela\Framework\AbstractFacade;
8
use Gacela\Framework\DocBlockResolverAwareTrait;
9
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleG\Infra\EntityManager;
10
use GacelaTest\Benchmark\Framework\ClassResolver\FileCache\ModuleG\Infra\Repository;
11
12
/**
13
 * @method ModuleGFactory getFactory()
14
 * @method Repository getRepository()
15
 * @method EntityManager getEntityManager()
16
 */
17
final class ModuleGFacade extends AbstractFacade
18
{
19
    use DocBlockResolverAwareTrait;
20
21
    public function loadGacelaCacheFile(): array
22
    {
23
        return [
24
            $this->getFactory()->getArrayConfigAndProvidedDependency(),
25
            $this->getRepository()->getAll(),
26
            $this->getEntityManager()->updateEntity(),
27
        ];
28
    }
29
}
30