Completed
Push — master ( 8eb315...5aaba6 )
by Changwan
04:29
created

SqsJob   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 30
ccs 0
cts 13
cp 0
rs 10
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getReceiptHandler() 0 4 1
A payload() 0 4 1
1
<?php
2
namespace Wandu\Q\Adapter;
3
4
use Wandu\Q\Contracts\AdapterJob;
5
6
class SqsJob implements AdapterJob
7
{
8
    /** @var string */
9
    protected $receiptHandler;
10
    
11
    /** @var string */
12
    protected $body;
13
14
    public function __construct($receiptHandler, $body)
15
    {
16
        $this->receiptHandler = $receiptHandler;
17
        $this->body = $body;
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getReceiptHandler()
24
    {
25
        return $this->receiptHandler;
26
    }
27
    
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function payload(): string
32
    {
33
        return $this->body;
34
    }
35
}
36