Completed
Pull Request — master (#7)
by Klaus
02:27
created

QueueAware   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Linio\Component\Queue;
6
7
trait QueueAware
8
{
9
    protected QueueService $queue;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
10
11
    public function getQueue(): QueueService
12
    {
13
        return $this->queue;
14
    }
15
16
    public function setQueue(QueueService $queue): void
17
    {
18
        $this->queue = $queue;
19
    }
20
}
21