Payloadable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayload() 0 3 1
A setPayload() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Resque\Traits;
6
7
trait Payloadable
8
{
9
    private $payload;
10
11 1
    public function setPayload(array $payload): void
12
    {
13 1
        $this->payload = $payload;
14 1
    }
15
16 1
    public function getPayload(): array
17
    {
18 1
        return $this->payload;
19
    }
20
}
21