/**
  * Calcul de PM
  * @param int $dbc
  * @return int
  */
 private function calculPM($dbc)
 {
     $repo = $this->getContainer()->get('doctrine')->getManager()->getRepository("AppBundle:Parametre");
     $k = $repo->calculK();
     $a = $repo->calculA();
     $r = $repo->calculR();
     $y = $repo->calculY();
     $pm = CalculPointUtility::calculPM($k, $a, $r, $dbc, $y);
     if (is_nan($pm)) {
         return null;
     }
     return $pm;
 }
Esempio n. 2
0
 /**
  * Test pour savoir si un match a eu lieu apres le 16/07/50
  */
 public function testMatch170700()
 {
     $dateMatch = new \DateTime("2000-07-17");
     $this->assertEquals(true, CalculPointUtility::isDateAp16071950($dateMatch));
 }