Completed
Push — master ( 6afbe3...49fc1c )
by ARCANEDEV
05:32
created

Foundation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 47
ccs 0
cts 8
cp 0
rs 10
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A version() 0 4 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
    const VERSION = '1.5.1';
19
20
    /* ------------------------------------------------------------------------------------------------
21
     |  Properties
22
     | ------------------------------------------------------------------------------------------------
23
     */
24
    /**
25
     * The application instance.
26
     *
27
     * @var \Illuminate\Contracts\Foundation\Application
28
     */
29
    protected $app;
30
31
    /* ------------------------------------------------------------------------------------------------
32
     |  Constructor
33
     | ------------------------------------------------------------------------------------------------
34
     */
35
    /**
36
     * Foundation constructor.
37
     *
38
     * @param  \Illuminate\Contracts\Foundation\Application  $app
39
     */
40
    public function __construct(Application $app)
41
    {
42
        $this->app = $app;
43
    }
44
45
    /* ------------------------------------------------------------------------------------------------
46
     |  Getters & Setters
47
     | ------------------------------------------------------------------------------------------------
48
     */
49
    /**
50
     * Get the package version.
51
     *
52
     * @return string
53
     */
54
    public function version()
55
    {
56
        return self::VERSION;
57
    }
58
}
59