ApplicationFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
ccs 2
cts 4
cp 0.5
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSessionClient() 0 3 1
A getLoggerFacade() 0 3 1
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
}