QueueableTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A onQueue() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Canvas\Contracts\Queue;
6
7
use Canvas\Queue\Queue;
8
9
trait QueueableTrait
10
{
11
    /**
12
     * The name of the queue the job should be sent to.
13
     *
14
     * @var string
15
     */
16
    public $queue = Queue::JOBS;
17
18
    /**
19
     * Set the desired queue for the job.
20
     *
21
     * @param  string $queue
22
     *
23
     * @return $this
24
     */
25
    public function onQueue(string $queue)
26
    {
27
        $this->queue = $queue;
28
        return $this;
29
    }
30
}
31