Skip to content

Commit 918bff6

Browse files
committed
producer setters must return this.
1 parent 9a1f0c5 commit 918bff6

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎pkg/amqp-ext/AmqpProducer.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ public function getDeliveryDelay()
116116
public function setPriority($priority)
117117
{
118118
$this->priority = $priority;
119+
120+
return $this;
119121
}
120122

121123
/**
@@ -132,6 +134,8 @@ public function getPriority()
132134
public function setTimeToLive($timeToLive)
133135
{
134136
$this->timeToLive = $timeToLive;
137+
138+
return $this;
135139
}
136140

137141
/**

‎pkg/amqp-lib/AmqpProducer.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ public function getDeliveryDelay()
111111
public function setPriority($priority)
112112
{
113113
$this->priority = $priority;
114+
115+
return $this;
114116
}
115117

116118
/**
@@ -127,6 +129,8 @@ public function getPriority()
127129
public function setTimeToLive($timeToLive)
128130
{
129131
$this->timeToLive = $timeToLive;
132+
133+
return $this;
130134
}
131135

132136
/**

‎pkg/fs/FsProducer.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public function getPriority()
106106
public function setTimeToLive($timeToLive)
107107
{
108108
$this->timeToLive = $timeToLive;
109+
110+
return $this;
109111
}
110112

111113
/**

‎pkg/sqs/SqsProducer.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function send(PsrDestination $destination, PsrMessage $message)
9191
public function setDeliveryDelay($deliveryDelay)
9292
{
9393
$this->deliveryDelay = $deliveryDelay;
94+
95+
return $this;
9496
}
9597

9698
/**

0 commit comments

Comments
 (0)