for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace eXpansion\Bundle\LocalRecords\Plugins;
use eXpansion\Framework\GameTrackmania\DataProviders\Listener\ListenerInterfaceLapData;
/**
* Class RaceRecords
*
* @package eXpansion\Bundle\LocalRecords\Plugins;
* @author oliver de Cramer <[email protected]>
*/
class LapsRecords extends BaseRecords implements ListenerInterfaceLapData
{
/*
* @inheritdoc
public function onPlayerEndLap(
$login,
$time,
$lapTime,
$stuntsScore,
$cpInLap,
$curLapCps,
$blockId,
$speed,
$distance
) {
$eventData = $this->recordsHandler->addRecord($login, $lapTime, $curLapCps);
if ($eventData) {
$this->dispatchEvent($eventData);
}