mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
d48e6bd5d2
More PHP 7.1 to 8 types added.
29 lines
441 B
PHP
29 lines
441 B
PHP
<?php
|
|
|
|
namespace Amp\Loop\Internal;
|
|
|
|
use Amp\Loop\Watcher;
|
|
use Amp\Struct;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class TimerQueueEntry
|
|
{
|
|
use Struct;
|
|
|
|
public Watcher $watcher;
|
|
|
|
public int $expiration;
|
|
|
|
/**
|
|
* @param Watcher $watcher
|
|
* @param int $expiration
|
|
*/
|
|
public function __construct(Watcher $watcher, int $expiration)
|
|
{
|
|
$this->watcher = $watcher;
|
|
$this->expiration = $expiration;
|
|
}
|
|
}
|