Completed
Push — master ( b015a1...0e1003 )
by Abdelrahman
49:45
created

AbstractController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

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 Cortex Foundation Module.
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: Cortex Foundation Module
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
declare(strict_types=1);
17
18
namespace Cortex\Foundation\Http\Controllers;
19
20
use Illuminate\Routing\Controller;
21
use Rinvex\Fort\Traits\GetsMiddleware;
22
use Illuminate\Foundation\Bus\DispatchesJobs;
23
24
abstract class AbstractController extends Controller
25
{
26
    use GetsMiddleware;
27
    use DispatchesJobs;
28
29
    /**
30
     * Whitelisted methods.
31
     * Array of whitelisted methods which do not need to go through middleware.
32
     *
33
     * @var array
34
     */
35
    protected $middlewareWhitelist = [];
36
37
    /**
38
     * The broker name.
39
     *
40
     * @var string
41
     */
42
    protected $broker;
43
44
    /**
45
     * Get the broker to be used.
46
     *
47
     * @return string
48
     */
49
    protected function getBroker()
50
    {
51
        return $this->broker;
52
    }
53
}
54