Completed
Push — dev ( 7f5445...3006be )
by Marc
02:44
created

AbstractWidget   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 0 Features 3
Metric Value
wmc 4
c 5
b 0
f 3
lcom 0
cbo 1
dl 0
loc 36
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAssetsPath() 0 4 1
A output() 0 4 1
A getManager() 0 3 1
A boot() 0 4 1
1
<?php namespace Mascame\Artificer\Widget;
2
3
use Mascame\Artificer\Extension\AbstractExtension;
4
5
abstract class AbstractWidget extends AbstractExtension implements WidgetInterface
6
{
7
8
    public $assetsPath = null;
9
10
    /**
11
     * vendor/package
12
     * 
13
     * @return string
14
     */
15
    public function getAssetsPath()
16
    {
17
        return $this->namespace;
18
    }
19
20
    /**
21
     * @return null
22
     */
23
    public function output()
24
    {
25
        return null;
26
    }
27
28
    /**
29
     * @return Manager
30
     */
31
    public function getManager() {
32
        return \App::make('ArtificerWidgetManager');
33
    }
34
35
    public function boot()
36
    {
37
        return null;
38
    }
39
40
}