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

Facade   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

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\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