S2OJ/web/app/vendor/peppeocchi/php-cron-scheduler/src/GO/FailedJob.php

33 lines
479 B
PHP
Raw Normal View History

2023-02-13 12:29:32 +00:00
<?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;
}
}