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:
parent
6bc4480300
commit
82132647b1
1 changed files with 4 additions and 4 deletions
|
|
@ -39,19 +39,19 @@ class JobPipeline implements ShouldQueue
|
|||
}
|
||||
|
||||
/** @param callable[]|string[] $jobs */
|
||||
public static function make(array $jobs): self
|
||||
public static function make(array $jobs): static
|
||||
{
|
||||
return new static($jobs);
|
||||
}
|
||||
|
||||
public function send(callable $send): self
|
||||
public function send(callable $send): static
|
||||
{
|
||||
$this->send = $send;
|
||||
|
||||
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;
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ class JobPipeline implements ShouldQueue
|
|||
/**
|
||||
* Return a serializable version of the current object.
|
||||
*/
|
||||
public function executable($listenerArgs): self
|
||||
public function executable($listenerArgs): static
|
||||
{
|
||||
$clone = clone $this;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue