QueueBindings::getSendingAddresses()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace PSB\Core\Transport;
3
4
/**
5
 * Contains information about the queues this endpoint is using.
6
 */
7
class QueueBindings
8
{
9
    /**
10
     * @var array
11
     */
12
    private $receivingAddresses = [];
13
14
    /**
15
     * @var array
16
     */
17
    private $sendingAddresses = [];
18
19
    /**
20
     * @param string $address
21
     */
22 1
    public function bindReceiving($address)
23
    {
24 1
        $this->receivingAddresses[] = $address;
25 1
    }
26
27
    /**
28
     * @param string $address
29
     */
30 1
    public function bindSending($address)
31
    {
32 1
        $this->sendingAddresses[] = $address;
33 1
    }
34
35
    /**
36
     * @return array
37
     */
38 1
    public function getReceivingAddresses()
39
    {
40 1
        return $this->receivingAddresses;
41
    }
42
43
    /**
44
     * @return array
45
     */
46 1
    public function getSendingAddresses()
47
    {
48 1
        return $this->sendingAddresses;
49
    }
50
}
51