AbstractThemeServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 7 1
registerThemeFormBuilder() 0 1 ?
registerThemeViews() 0 1 ?
registerThemeLayouts() 0 1 ?
A provides() 0 4 1
1
<?php
2
3
namespace Scaffolder\Themes;
4
5
use Collective\Html\HtmlServiceProvider;
6
7
abstract class AbstractThemeServiceProvider extends HtmlServiceProvider
8
{
9
    public function register()
10
    {
11
        $this->registerHtmlBuilder();
12
        $this->registerThemeFormBuilder();
13
        $this->registerThemeViews();
14
        $this->registerThemeLayouts();
15
    }
16
17
    abstract protected function registerThemeFormBuilder();
18
19
    abstract protected function registerThemeViews();
20
21
    abstract protected function registerThemeLayouts();
22
23
    public function provides()
24
    {
25
        return ['html', 'form', 'scaffolder.theme.views', 'scaffolder.theme.layouts'];
26
    }
27
}