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\Server\Timer;
class ReviewClient extends PeriodicTimer
{
* {@inheritdoc}
public function __invoke()
foreach ($this->server->getClients() as $client) {
if ($client->getSilentDuration() > 60 * 5) {
$this->server->closeClient($client);
}
public function getInterval()
return 5 * 60;