for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the slince/spike package.
*
* (c) Slince <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Spike\Client\Timer;
use Spike\Common\Protocol\Spike;
/**
* @codeCoverageIgnore
class HeartbeatTimer extends Timer
{
* {@inheritdoc}
public function __invoke()
$this->client->getControlConnection()->write(new Spike('ping'));
}
public function getInterval()
return 50;
public function isPeriodic()
return true;