New columns at job_results table to track url, job_command_name and job_command + new JobResourceNotFoundException

This commit is contained in:
Dillon
2023-09-25 19:43:58 +08:00
parent 4173412230
commit b081c5ccfb
19 changed files with 155 additions and 49 deletions
@@ -19,6 +19,12 @@ class ListGenericJobObject implements DataTransferObject
/** @var object */
private $userInfo;
/** @var string */
private $jobCommandName;
/** @var string */
private $jobCommand;
public function __construct(string $name, array $payload, string $jobId, object $userInfo = null)
{
$this->name = $name;
@@ -59,9 +65,35 @@ class ListGenericJobObject implements DataTransferObject
return $this->userInfo;
}
/**
* @return string
*/
public function getJobCommandName(): string
{
return $this->jobCommandName;
}
/**
* @return string
*/
public function getJobCommand(): string
{
return $this->jobCommand;
}
// public function setJobId(int $jobId)
// {
// $this->jobId = $jobId;
// }
public function setJobCommandName(string $jobCommandName)
{
$this->jobCommandName = $jobCommandName;
}
public function setJobCommand(string $jobCommand)
{
$this->jobCommand = $jobCommand;
}
}