Passed
Pull Request — master (#190)
by Arman
04:27
created

AppAdapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/**
4
 * Quantum PHP Framework
5
 *
6
 * An open source software development framework for PHP
7
 *
8
 * @package Quantum
9
 * @author Arman Ag. <[email protected]>
10
 * @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
11
 * @link http://quantum.softberg.org/
12
 * @since 2.9.5
13
 */
14
15
namespace Quantum\App\Adapters;
16
17
use Quantum\Di\Exceptions\DiException;
18
use Quantum\Exceptions\BaseException;
19
use Quantum\App\Traits\AppTrait;
20
use ReflectionException;
21
use Quantum\Di\Di;
22
23
/**
24
 * Class AppAdapter
25
 * @package Quantum\App
26
 */
27
abstract class AppAdapter
28
{
29
    use AppTrait;
30
31
    /**
32
     * @var string
33
     */
34
    private static $baseDir;
0 ignored issues
show
introduced by
The private property $baseDir is not used, and could be removed.
Loading history...
35
36
    /**
37
     * @throws BaseException
38
     * @throws DiException
39
     * @throws ReflectionException
40
     */
41
    public function __construct()
42
    {
43
        Di::loadDefinitions();
44
45
        $this->loadCoreHelperFunctions();
46
        $this->loadLibraryHelperFunctions();
47
        $this->loadAppHelperFunctions();
48
    }
49
}