1
0
mirror of https://github.com/danog/amp.git synced 2024-12-04 18:38:17 +01:00
amp/lib/Loop/Internal/TimerQueueEntry.php
Niklas Keller a75164b66b Add psalm static analysis on level 6
This also fixes mixed types in some cases.
2020-03-28 12:23:46 +01:00

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;
}
}