Exemple #1
0
 public function passed($passing_grade)
 {
     if (!SELF::validate($passing_grade)) {
         throw new Exception('Invalid Grade');
     }
     if (!$this->grade) {
         return TRUE;
     }
     if (SELF::$marks[$this->grade] <= SELF::$marks[$passing_grade]) {
         return TRUE;
     }
     return FALSE;
 }