QueueBindings   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 2
cbo 0
dl 0
loc 44
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A bindReceiving() 0 4 1
A bindSending() 0 4 1
A getReceivingAddresses() 0 4 1
A getSendingAddresses() 0 4 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