Completed
Push — master ( 8927df...f70445 )
by Abdelrahman
02:05
created

AbstractController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 30
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBroker() 0 4 1
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Fort Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Fort Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
namespace Rinvex\Fort\Http\Controllers;
17
18
use Illuminate\Routing\Controller;
19
use Rinvex\Fort\Traits\GetsMiddleware;
20
use Illuminate\Foundation\Bus\DispatchesJobs;
21
22
abstract class AbstractController extends Controller
23
{
24
    use DispatchesJobs, GetsMiddleware;
25
26
    /**
27
     * Whitelisted methods.
28
     *
29
     * Array of whitelisted methods which do not need to go through middleware.
30
     *
31
     * @var array
32
     */
33
    protected $middlewareWhitelist = [];
34
35
    /**
36
     * The password broker.
37
     *
38
     * @var string
39
     */
40
    protected $broker;
41
42
    /**
43
     * Get the broker to be used.
44
     *
45
     * @return string
46
     */
47
    protected function getBroker()
48
    {
49
        return $this->broker;
50
    }
51
}
52