mirror of
https://github.com/danog/amp.git
synced 2024-12-12 17:37:34 +01:00
31 lines
473 B
PHP
31 lines
473 B
PHP
|
<?php
|
||
|
|
||
|
namespace Amp\Loop\Internal;
|
||
|
|
||
|
use Amp\Loop\Watcher;
|
||
|
use Amp\Struct;
|
||
|
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
final class TimerQueueEntry
|
||
|
{
|
||
|
use Struct;
|
||
|
|
||
|
/** @var Watcher */
|
||
|
public $watcher;
|
||
|
|
||
|
/** @var int */
|
||
|
public $expiration;
|
||
|
|
||
|
/**
|
||
|
* @param Watcher $watcher
|
||
|
* @param int $expiration
|
||
|
*/
|
||
|
public function __construct(Watcher $watcher, int $expiration)
|
||
|
{
|
||
|
$this->watcher = $watcher;
|
||
|
$this->expiration = $expiration;
|
||
|
}
|
||
|
}
|