Passed
Push — main ( 6230b7...ae23f2 )
by Chema
04:12
created

Facade::loadGacelaCacheFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Benchmark\FileCache\ModuleE;
6
7
use Gacela\Framework\AbstractFacade;
8
use Gacela\Framework\DocBlockResolverAwareTrait;
9
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\EntityManager;
10
use GacelaTest\Benchmark\FileCache\ModuleE\Infra\Repository;
11
12
/**
13
 * @method FactoryE getFactory()
14
 * @method Repository getRepository()
15
 * @method EntityManager getEntityManager()
16
 */
17
final class Facade 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