for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AsyncPHP\Doorman\Task;
use AsyncPHP\Doorman\Expires;
use AsyncPHP\Doorman\Process;
final class ProcessCallbackTask extends CallbackTask implements Expires, Process
{
/**
* @var null|int
*/
private $id;
private $expiredAt;
* @inheritdoc
*
* @return null|int
public function getId()
return $this->id;
}
* @param int $id
* @return $this
public function setId($id)
$this->id = $id;
return $this;
* @return int
public function getExpiresIn()
return -1;
* @param int $startedAt
* @return bool
public function shouldExpire($startedAt)
$this->expiredAt = time();
return true;
* Checks whether this task has expired.
public function hasExpired()
return is_int($this->expiredAt);