Foundation::version()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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