Completed
Push — master ( 03b333...573f2e )
by Abdelrahman
02:45
created

AbstractController::getBroker()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
22
23
abstract class AbstractController extends Controller
24
{
25
    use AuthorizesRequests, DispatchesJobs, GetsMiddleware;
26
27
    /**
28
     * Whitelisted methods.
29
     *
30
     * Array of whitelisted methods which do not need to go through middleware.
31
     *
32
     * @var array
33
     */
34
    protected $middlewareWhitelist = [];
35
36
    /**
37
     * The password broker.
38
     *
39
     * @var string
40
     */
41
    protected $broker;
42
43
    /**
44
     * Get the broker to be used.
45
     *
46
     * @return string
47
     */
48
    protected function getBroker()
49
    {
50
        return $this->broker;
51
    }
52
}
53