/** * Returns a populated participant with laps * * @return Participant */ protected function getParticipantWithLaps() { // Create new participant $participant = new Participant(); // Add some laps $lap = new Lap(); $participant->addLap($lap->setTime(128.211)->setSectorTimes(array(40.201, 33.5, 54.51))->setPosition(1)->setNumber(1)->setAids(array('PlayerControl' => null, 'TC' => 3))); $lap = new Lap(); $participant->addLap($lap->setTime(125.73)->setSectorTimes(array(39.601, 38.2, 47.929))->setPosition(2)->setNumber(2)->setAids(array('AutoShift' => 3))); $lap = new Lap(); $participant->addLap($lap->setTime(128.73)->setSectorTimes(array(40.601, 39.2, 48.929))->setPosition(2)->setNumber(2)->setAids(array('AutoShift' => 3))); $lap = new Lap(); $participant->addLap($lap->setTime(131.73)->setSectorTimes(array(41.601, 40.2, 49.929))->setPosition(2)->setNumber(2)->setAids(array('AutoShift' => 3))->setPitLap(true)); $lap = new Lap(); $participant->addLap($lap->setTime(155.73)->setSectorTimes(array(49.601, 48.2, 57.929))->setPosition(1)->setNumber(3)); // null lap as somtimes present in qualify sessions $lap = new Lap(); $participant->addLap($lap->setPosition(2)->setNumber(4)); return $participant; }