Completed
Pull Request — master (#8)
by ARCANEDEV
05:19
created

Foundation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
ccs 3
cts 3
cp 1
crap 1
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 6
    public function __construct(Application $app)
41
    {
42 6
        $this->app = $app;
43 6
    }
44
45
    /* ------------------------------------------------------------------------------------------------
46
     |  Getters & Setters
47
     | ------------------------------------------------------------------------------------------------
48
     */
49
    /**
50
     * Get the package version.
51
     *
52
     * @return string
53
     */
54 3
    public function version()
55
    {
56 3
        return self::VERSION;
57
    }
58
}
59