Skip to content

Commit b6514d0

Browse files
committed
Resolve code style issues.
1 parent 65f06d2 commit b6514d0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pkg/stomp/StompProducer.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class StompProducer implements Producer
2020
*/
2121
private $stomp;
2222

23-
/**
24-
* @param Client $stomp
25-
*/
2623
public function __construct(Client $stomp)
2724
{
2825
$this->stomp = $stomp;
@@ -45,6 +42,9 @@ public function send(Destination $destination, Message $message): void
4542
$this->stomp->send($destination->getQueueName(), $stompMessage);
4643
}
4744

45+
/**
46+
* @return $this|Producer
47+
*/
4848
public function setDeliveryDelay(int $deliveryDelay = null): Producer
4949
{
5050
if (empty($deliveryDelay)) {
@@ -59,6 +59,11 @@ public function getDeliveryDelay(): ?int
5959
return null;
6060
}
6161

62+
/**
63+
* @throws PriorityNotSupportedException
64+
*
65+
* @return $this|Producer
66+
*/
6267
public function setPriority(int $priority = null): Producer
6368
{
6469
if (empty($priority)) {
@@ -73,6 +78,9 @@ public function getPriority(): ?int
7378
return null;
7479
}
7580

81+
/**
82+
* @return $this|Producer
83+
*/
7684
public function setTimeToLive(int $timeToLive = null): Producer
7785
{
7886
if (empty($timeToLive)) {

0 commit comments

Comments
 (0)