@@ -5,21 +5,21 @@ |
||
5 | 5 | class AmqpPartsHolder |
6 | 6 | { |
7 | 7 | /** @var array */ |
8 | - protected $parts; |
|
8 | + protected $parts; |
|
9 | 9 | |
10 | - public function __construct() |
|
11 | - { |
|
12 | - $this->parts = array(); |
|
13 | - } |
|
10 | + public function __construct() |
|
11 | + { |
|
12 | + $this->parts = array(); |
|
13 | + } |
|
14 | 14 | |
15 | - public function addPart(string $type, BaseAmqp $part): void |
|
16 | - { |
|
17 | - $this->parts[$type][] = $part; |
|
18 | - } |
|
15 | + public function addPart(string $type, BaseAmqp $part): void |
|
16 | + { |
|
17 | + $this->parts[$type][] = $part; |
|
18 | + } |
|
19 | 19 | |
20 | - public function getParts(string $type): array |
|
21 | - { |
|
20 | + public function getParts(string $type): array |
|
21 | + { |
|
22 | 22 | $type = (string) $type; |
23 | - return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
24 | - } |
|
23 | + return isset($this->parts[$type]) ? $this->parts[$type] : array(); |
|
24 | + } |
|
25 | 25 | } |
@@ -34,12 +34,12 @@ |
||
34 | 34 | */ |
35 | 35 | protected $arguments; |
36 | 36 | |
37 | - public function getExchange(): string |
|
37 | + public function getExchange(): string |
|
38 | 38 | { |
39 | 39 | return $this->exchange; |
40 | 40 | } |
41 | 41 | |
42 | - public function setExchange(string $exchange): void |
|
42 | + public function setExchange(string $exchange): void |
|
43 | 43 | { |
44 | 44 | $this->exchange = $exchange; |
45 | 45 | } |