Passed
Push — factory-and-get-factory ( 652c17...af38f3 )
by Jesús
12:34 queued 11:54
created

Facade   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createStringFromStaticFactory() 0 3 1
A createStringFromNonStaticFactory() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\StaticFacade\ModuleB;
6
7
use Gacela\Framework\AbstractFacade;
8
9
/**
10
 * @method static Factory getFactory()
11
 */
12
final class Facade extends AbstractFacade
13
{
14
    public static function createStringFromStaticFactory(): string
15
    {
16
        return self::getFactory()->createString();
17
    }
18
19
    public function createStringFromNonStaticFactory(): string
20
    {
21
        return $this->getFactory()->createString();
22
    }
23
}
24