-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,53 +44,53 @@ public function add(Task $task): self | |
/** | ||
* @see CommandTask::__construct() | ||
* | ||
* @param string|null $description optional description | ||
* @param Task\string|null $description optional description | ||
*/ | ||
public function addCommand(string $name, array $arguments = [], ?string $description = null): self | ||
Check failure on line 49 in src/Schedule/Task/CompoundTask.php GitHub Actions / sca / Static Code Analysis
Check failure on line 49 in src/Schedule/Task/CompoundTask.php GitHub Actions / sca / Static Code Analysis
|
||
{ | ||
return $this->addWithDescription(new CommandTask($name, ...$arguments), $description); | ||
return $this->addWithDescription(new Task\CommandTask($name, ...$arguments), $description); | ||
} | ||
|
||
/** | ||
* @see CallbackTask::__construct() | ||
* | ||
* @param string|null $description optional description | ||
* @param Task\string|null $description optional description | ||
*/ | ||
public function addCallback(callable $callback, ?string $description = null): self | ||
Check failure on line 59 in src/Schedule/Task/CompoundTask.php GitHub Actions / sca / Static Code Analysis
Check failure on line 59 in src/Schedule/Task/CompoundTask.php GitHub Actions / sca / Static Code Analysis
|
||
{ | ||
return $this->addWithDescription(new CallbackTask($callback), $description); | ||
return $this->addWithDescription(new Task\CallbackTask($callback), $description); | ||
} | ||
|
||
/** | ||
* @see ProcessTask::__construct() | ||
* | ||
* @param string|Process $process | ||
* @param string|null $description optional description | ||
* @param string|Process $process | ||
* @param Task\string|null $description optional description | ||
*/ | ||
public function addProcess($process, ?string $description = null): self | ||
{ | ||
return $this->addWithDescription(new ProcessTask($process), $description); | ||
return $this->addWithDescription(new Task\ProcessTask($process), $description); | ||
} | ||
|
||
/** | ||
* @see PingTask::__construct() | ||
* | ||
* @param string|null $description optional description | ||
* @param Task\string|null $description optional description | ||
*/ | ||
public function addPing(string $url, string $method = 'GET', array $options = [], ?string $description = null): self | ||
{ | ||
return $this->addWithDescription(new PingTask($url, $method, $options), $description); | ||
return $this->addWithDescription(new Task\PingTask($url, $method, $options), $description); | ||
} | ||
|
||
/** | ||
* @see MessageTask::__construct() | ||
* | ||
* @param object|Envelope $message | ||
* @param string|null $description optional description | ||
* @param object|Envelope $message | ||
* @param Task\string|null $description optional description | ||
*/ | ||
public function addMessage(object $message, array $stamps = [], ?string $description = null): self | ||
{ | ||
return $this->addWithDescription(new MessageTask($message, $stamps), $description); | ||
return $this->addWithDescription(new Task\MessageTask($message, $stamps), $description); | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters