for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dazzle\Loop\Bridge\React;
use Dazzle\Loop\Timer\TimerInterface;
class ReactTimer implements ReactTimerInterface
{
/**
* @var TimerInterface
*/
protected $timer;
* @param TimerInterface $timer
public function __construct(TimerInterface $timer)
$this->timer = $timer;
}
*
public function __destruct()
unset($this->timer);
* @override
* @inheritDoc
public function getActualTimer()
return $this->timer;
public function getLoop()
return new ReactLoop($this->timer->getLoop());
public function getInterval()
return $this->timer->getInterval();
public function getCallback()
return $this->timer->getCallback();
public function setData($data)
return $this->timer->setData($data);
public function getData()
return $this->timer->getData();
public function isPeriodic()
return $this->timer->isPeriodic();
public function isActive()
return $this->timer->isActive();
public function cancel()
$this->timer->cancel();