for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace RemotelyLiving\PHPQueryBus\Traits;
trait TimeBoundary
{
private ?int $time;
protected function getTimeStamp(): int
if (!isset($this->time)) {
$this->time = time();
}
return $this->time;
return $this->time
null
integer
public function setTimeStamp(?int $time): void
$this->time = $time;