ApplicationHook::getTags()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace LaravelPlus\Extension\Hooks;
4
5
use Illuminate\Contracts\Foundation\Application as ApplicationInterface;
6
use Illuminate\Foundation\Application as LaravelApplication;
7
8
/**
9
 * @author Fumio Furukawa <[email protected]>
10
 */
11
class ApplicationHook extends LaravelApplication implements ApplicationInterface
12
{
13
    /**
14
     *	@var \Illuminate\Contracts\Foundation\Application
15
     */
16
    private $app;
17
18 6
    public function __construct(ApplicationInterface $app)
19
    {
20 6
        $this->app = $app;
21 6
    }
22
23
    /**
24
     * An array of the types that have been resolved.
25
     *
26
     * @return array
27
     */
28 1
    public function getResolved()
29
    {
30 1
        return $this->app->resolved;
31
    }
32
33
    /**
34
     * The container's bindings.
35
     *
36
     * @return array
37
     */
38 2
    public function getBindings()
39
    {
40 2
        return $this->app->bindings;
41
    }
42
43
    /**
44
     * The container's shared instances.
45
     *
46
     * @return array
47
     */
48 2
    public function getInstances()
49
    {
50 2
        return $this->app->instances;
51
    }
52
53
    /**
54
     * The registered type aliases.
55
     *
56
     * @return array
57
     */
58 2
    public function getAliases()
59
    {
60 2
        return $this->app->aliases;
61
    }
62
63
    /**
64
     * All of the registered tags.
65
     *
66
     * @return array
67
     */
68 1
    public function getTags()
69
    {
70 1
        return $this->app->tags;
71
    }
72
}
73