1
0
Fork 0
mirror of https://github.com/archtechx/jobpipeline.git synced 2025-12-12 20:04:03 +00:00

Change return types to static

This commit is contained in:
Zarunet 2025-07-22 00:08:22 +02:00
parent 6bc4480300
commit 82132647b1

View file

@ -39,19 +39,19 @@ class JobPipeline implements ShouldQueue
} }
/** @param callable[]|string[] $jobs */ /** @param callable[]|string[] $jobs */
public static function make(array $jobs): self public static function make(array $jobs): static
{ {
return new static($jobs); return new static($jobs);
} }
public function send(callable $send): self public function send(callable $send): static
{ {
$this->send = $send; $this->send = $send;
return $this; return $this;
} }
public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null): self public function shouldBeQueued(bool $shouldBeQueued = true, string $queue = null): static
{ {
$this->shouldBeQueued = $shouldBeQueued; $this->shouldBeQueued = $shouldBeQueued;
@ -106,7 +106,7 @@ class JobPipeline implements ShouldQueue
/** /**
* Return a serializable version of the current object. * Return a serializable version of the current object.
*/ */
public function executable($listenerArgs): self public function executable($listenerArgs): static
{ {
$clone = clone $this; $clone = clone $this;