Completed
Pull Request — master (#142)
by
unknown
04:03
created

OptionalQueueConnection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __get() 0 4 2
1
<?php
2
3
namespace Cog\Laravel\Love\Reactant\Listeners\Traits;
4
5
use Illuminate\Support\Facades\Config;
6
7
Trait OptionalQueueConnection
8
{
9
    public function __get($name)
10
    {
11
        if ($name == 'connection') {
12
            return Config::get('love.queue_connection', null);
13
        }
14
    }
15
}