Skip to content

Commit 818da98

Browse files
Add back @return $this annotations
1 parent 0f7de43 commit 818da98

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Message/ChatMessage.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public static function fromNotification(Notification $notification): self
3737
return $message;
3838
}
3939

40+
/**
41+
* @return $this
42+
*/
4043
public function subject(string $subject): static
4144
{
4245
$this->subject = $subject;
@@ -54,6 +57,9 @@ public function getRecipientId(): ?string
5457
return $this->options ? $this->options->getRecipientId() : null;
5558
}
5659

60+
/**
61+
* @return $this
62+
*/
5763
public function options(MessageOptionsInterface $options): static
5864
{
5965
$this->options = $options;
@@ -66,6 +72,9 @@ public function getOptions(): ?MessageOptionsInterface
6672
return $this->options;
6773
}
6874

75+
/**
76+
* @return $this
77+
*/
6978
public function transport(?string $transport): static
7079
{
7180
$this->transport = $transport;

Message/EmailMessage.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function getEnvelope(): ?Envelope
7272
return $this->envelope;
7373
}
7474

75+
/**
76+
* @return $this
77+
*/
7578
public function envelope(Envelope $envelope): static
7679
{
7780
$this->envelope = $envelope;
@@ -94,6 +97,9 @@ public function getOptions(): ?MessageOptionsInterface
9497
return null;
9598
}
9699

100+
/**
101+
* @return $this
102+
*/
97103
public function transport(?string $transport): static
98104
{
99105
if (!$this->message instanceof Email) {

Message/SmsMessage.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public static function fromNotification(Notification $notification, SmsRecipient
3939
return new self($recipient->getPhone(), $notification->getSubject());
4040
}
4141

42+
/**
43+
* @return $this
44+
*/
4245
public function phone(string $phone): static
4346
{
4447
if ('' === $phone) {
@@ -60,6 +63,9 @@ public function getRecipientId(): string
6063
return $this->phone;
6164
}
6265

66+
/**
67+
* @return $this
68+
*/
6369
public function subject(string $subject): static
6470
{
6571
$this->subject = $subject;
@@ -72,6 +78,9 @@ public function getSubject(): string
7278
return $this->subject;
7379
}
7480

81+
/**
82+
* @return $this
83+
*/
7584
public function transport(?string $transport): static
7685
{
7786
$this->transport = $transport;

0 commit comments

Comments
 (0)