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

Foundation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
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