protected function getNewRecord($login)
    {
        $record = new Record();
        $record->setPlayer($this->playerDb->get($login));
        $record->setNbLaps($this->currentNbLaps);
        $record->setNbFinish(0);
        $record->setMapUid($this->currentMapUid);

        return $record;
    }
protected function getNewRecord($login)
    {
        $record = new Record();
        $record->setPlayer($this->playerDb->get($login));
        $record->setNbLaps($this->currentNbLaps);
        $record->setNbFinish(0);
        $record->setMapUid($this->currentMapUid);

        return $record;
    }
protected function getNewRecord ( $ login ) { $ record = new Record ( ) ; $ record -> setPlayer ( $ this -> playerDb -> get ( $ login ) ) ; $ record -> setNbLaps ( $ this -> currentNbLaps ) ; $ record -> setNbFinish ( 0 ) ; $ record -> setMapUid ( $ this -> currentMapUid ) ; return $ record ; }
Get a new record instance.

@param string $login

@return Record
Get a new record instance .