QueueableOptionsTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 29
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A queueOptions() 0 6 1
A queueOptionAliases() 0 6 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipboxfactory/craft-ember/blob/master/LICENSE
6
 * @link       https://github.com/flipboxfactory/craft-ember/
7
 */
8
9
namespace flipbox\craft\ember\cli;
10
11
trait QueueableOptionsTrait
12
{
13
    /**
14
     * @var bool
15
     * Create and send job to the queue
16
     * example: -q=1
17
     */
18
    public $toQueue = false;
19
20
    /**
21
     * @inheritdoc
22
     */
23
    protected function queueOptions()
24
    {
25
        return [
26
            'toQueue'
27
        ];
28
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33
    protected function queueOptionAliases()
34
    {
35
        return [
36
            'q' => 'to-queue',
37
        ];
38
    }
39
}
40