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

ModuleGFacade::loadGacelaCacheFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 0
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