S2OJ/web/app/vendor/peppeocchi/php-cron-scheduler/src/GO/FailedJob.php
2023-02-13 20:29:32 +08:00

33 lines
479 B
PHP

<?php namespace GO;
use Exception;
class FailedJob
{
/**
* @var Job
*/
private $job;
/**
* @var Exception
*/
private $exception;
public function __construct(Job $job, Exception $exception)
{
$this->job = $job;
$this->exception = $exception;
}
public function getJob(): Job
{
return $this->job;
}
public function getException(): Exception
{
return $this->exception;
}
}