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

FormRepositoryServiceProvider::aliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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