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

Factory::createInformalGreeter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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