Exemple #1
0
 /**
  * @param Model_Solution $solution
  *
  * @return null
  */
 public static function for_solution($solution)
 {
     $code = Model_Code::find_by_id($solution->solution_id);
     if ($code) {
         return $code->source;
     }
     return null;
 }
 /**
  * the source code of solution
  *
  * @return string|null
  */
 public function source()
 {
     return Model_Code::for_solution($this);
 }