Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aba42e4

Browse files
committed
deprecate method
1 parent 91d244b commit aba42e4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Interfaces/RunInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,9 @@ public function withSkip(string ...$job): self;
5959
* Provides access to the ResponseInterface instance for the given `$job`.
6060
*/
6161
public function response(string $job): CastInterface;
62+
63+
/**
64+
* @deprecated Use `response` instead.
65+
*/
66+
public function getReturn(string $job): CastInterface;
6267
}

src/Run.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,11 @@ public function response(string $job): CastInterface
108108
return $this->map->get($job);
109109
}
110110

111+
public function getReturn(string $job): CastInterface
112+
{
113+
return $this->response($job);
114+
}
115+
111116
private function assertNoSkipOverflow(string $job, MessageInterface $message): void
112117
{
113118
if ($this->skip->contains($job)) {

0 commit comments

Comments
 (0)