$config of type array is incompatible with the type Illuminate\Contracts\Support\Arrayable expected by parameter $items of Illuminate\Support\Collection::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
52
$this->config = new Collection(/** @scrutinizer ignore-type */ $config);
Loading history...
53
54
return $this;
55
}
56
57
/**
58
* Get AMQP Message.
59
*
60
* @return AMQPMessage
61
*/
62
public function getAmqpMessage(): AMQPMessage
63
{
64
return new AMQPMessage($this->stream, $this->config ? $this->config->toArray() : []);
65
}
66
67
/**
68
* Set message stream.
69
*
70
* @param string $stream
71
* @return self
72
*/
73
public function setStream(string $stream): self
74
{
75
$this->stream = $stream;
76
77
return $this;
78
}
79
80
/**
81
* @return string
82
*/
83
public function getStream(): string
84
{
85
return $this->stream;
86
}
87
88
/**
89
* @return Collection
90
*/
91
public function getConfig(): Collection
92
{
93
return $this->config;
94
}
95
96
/**
97
* @return null|RabbitMQExchange
98
*/
99
public function getExchange(): ?RabbitMQExchange
100
{
101
return $this->exchange;
102
}
103
104
/**
105
* Set message exchange.
106
*
107
* @param RabbitMQExchange $exchange
108
* @return self
109
*/
110
public function setExchange(RabbitMQExchange $exchange): self