for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spike library
* @author Tao <[email protected]>
*/
namespace Spike\Timer;
use React\EventLoop\LoopInterface;
use React\EventLoop\Timer\TimerInterface as ReactTimer;
abstract class Timer implements TimerInterface
{
* @var LoopInterface
protected $loop;
* @var ReactTimer
protected $reactTimer;
* {@inheritdoc}
public function activate(LoopInterface $loop, ReactTimer $timer)
$this->loop = $loop;
$this->reactTimer = $timer;
}
public function cancel()
$this->loop->cancelTimer($this->reactTimer);