Completed
Pull Request — master (#3)
by ARCANEDEV
16:54
created

AuthServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A policyClasses() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arcanesoft\Backups\Providers;
6
7
use Arcanesoft\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
8
9
/**
10
 * Class     AuthServiceProvider
11
 *
12
 * @author   ARCANEDEV <[email protected]>
13
 */
14
class AuthServiceProvider extends ServiceProvider
15
{
16
    /* -----------------------------------------------------------------
17
     |  Getters
18
     | -----------------------------------------------------------------
19
     */
20
21
    /**
22
     * Get policy's classes.
23
     *
24
     * @return iterable
25
     */
26
    public function policyClasses(): iterable
27
    {
28
        return $this->app->get('config')->get('arcanesoft.backups.policies', []);
29
    }
30
}
31