Foundation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
dl 0
loc 49
ccs 5
cts 5
cp 1
rs 10
c 3
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A version() 0 3 1
A __construct() 0 3 1
1
<?php namespace Arcanesoft\Foundation;
2
3
use Arcanesoft\Foundation\Contracts\Foundation as FoundationContract;
4
use Illuminate\Contracts\Foundation\Application;
5
6
/**
7
 * Class     Foundation
8
 *
9
 * @package  Arcanesoft\Foundation
10
 * @author   ARCANEDEV <[email protected]>
11
 */
12
class Foundation implements FoundationContract
13
{
14
    /* -----------------------------------------------------------------
15
     |  Constants
16
     | -----------------------------------------------------------------
17
     */
18
19
    const VERSION = '2.4.2';
20
21
    /* -----------------------------------------------------------------
22
     |  Properties
23
     | -----------------------------------------------------------------
24
     */
25
26
    /**
27
     * The application instance.
28
     *
29
     * @var \Illuminate\Contracts\Foundation\Application
30
     */
31
    protected $app;
32
33
    /* -----------------------------------------------------------------
34
     |  Constructor
35
     | -----------------------------------------------------------------
36
     */
37
38
    /**
39
     * Foundation constructor.
40
     *
41
     * @param  \Illuminate\Contracts\Foundation\Application  $app
42
     */
43 4
    public function __construct(Application $app)
44
    {
45 4
        $this->app = $app;
46 4
    }
47
48
    /* -----------------------------------------------------------------
49
     |  Getters & Setters
50
     | -----------------------------------------------------------------
51
     */
52
53
    /**
54
     * Get the package version.
55
     *
56
     * @return string
57
     */
58 2
    public function version()
59
    {
60 2
        return self::VERSION;
61
    }
62
}
63