Test Failed
Push — master ( bc18b2...889641 )
by Chris
15:33
created

FormRepositoryServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 5
dl 0
loc 20
rs 10
c 1
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A factory() 0 3 1
A aliases() 0 3 1
A types() 0 3 1
A id() 0 3 1
1
<?php
2
3
namespace Leonidas\Framework\Provider\League;
4
5
use Leonidas\Contracts\Http\Form\FormRepositoryInterface;
6
use Leonidas\Framework\Provider\FormRepositoryProvider;
7
use Leonidas\Framework\Provider\League\Abstracts\AbstractLeagueServiceFactory;
8
use Panamax\Contracts\ServiceFactoryInterface;
9
10
class FormRepositoryServiceProvider extends AbstractLeagueServiceFactory
11
{
12
    protected function id(): string
13
    {
14
        return 'forms';
15
    }
16
17
    protected function types(): array
18
    {
19
        return [FormRepositoryInterface::class];
20
    }
21
22
    protected function aliases(): array
23
    {
24
        return ['form_repository', 'formRepository'];
25
    }
26
27
    protected function factory(): ServiceFactoryInterface
28
    {
29
        return new FormRepositoryProvider();
30
    }
31
}
32