Passed
Push — allow-using-config-as-static-f... ( ac1f98...fb22b7 )
by Chema
02:58
created

Factory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createFormatGreeter() 0 3 1
A createInformalGreeter() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\StaticFacade\Module;
6
7
use Gacela\Framework\AbstractFactory;
8
use GacelaTest\Feature\Framework\StaticFacade\Module\Domain\FormalGreeter;
9
use GacelaTest\Feature\Framework\StaticFacade\Module\Domain\GreeterInterface;
10
use GacelaTest\Feature\Framework\StaticFacade\Module\Domain\InformalGreeter;
11
12
/**
13
 * @method Config getConfig()
14
 * @method static Config config()
15
 */
16
final class Factory extends AbstractFactory
17
{
18
    public function createInformalGreeter(): GreeterInterface
19
    {
20
        return new InformalGreeter();
21
    }
22
23
    public function createFormatGreeter(): GreeterInterface
24
    {
25
        return new FormalGreeter();
26
    }
27
}
28