erpk/harvester — pull request #28 by amosavian (2014-03-03 18:11:44+00:00)
Title: New Leaderboard data retriever

use Erpk\Harvester\Module\Military\Leaderboard;

$countries = $em->getRepository('\Erpk\Common\Entity\Country');
$poland = $countries->findOneByCode('PL');

$lmodule = new Leaderboard($client, $poland, 4, 0,
Leaderboard::LASTWEEK);

$citizenDamages = $lmodule->citizensDamage();

$countryDamages = $lmodule->countryDamage();