Passed
Push — master ( 87b24e...d7d567 )
by Mike
07:22
created

ApplicationFactory::getLoggerFacade()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace App\Application;
5
6
7
use Xervice\Core\Factory\AbstractFactory;
8
use Xervice\Logger\LoggerFacade;
9
use Xervice\Session\SessionClient;
10
11
/**
12
 * @method \App\Application\ApplicationConfig getConfig()
13
 */
14
class ApplicationFactory extends AbstractFactory
15
{
16
    /**
17
     * @return \Xervice\Session\SessionClient
18
     */
19 1
    public function getSessionClient(): SessionClient
20
    {
21 1
        return $this->getDependency(ApplicationDependencyProvider::SESSION_CLIENT);
22
    }
23
24
    /**
25
     * @return \Xervice\Logger\LoggerFacade
26
     */
27
    public function getLoggerFacade(): LoggerFacade
28
    {
29
        return $this->getDependency(ApplicationDependencyProvider::LOG_FACADE);
30
    }
31
}