コード例 #1
0
 /**
  * @param Category $category
  * @param Question $question
  * @param Answer   $answer
  *
  * @return string
  */
 public static function getHash(Category $category, Question $question, Answer $answer)
 {
     return md5($category->getName() . $question->getName() . $answer->getName());
 }
コード例 #2
0
 /**
  * @param Category $category
  *
  * @return bool
  */
 public function getReportMetrics(Category $category)
 {
     if (!isset($this->reportMetrics[$category->getName()])) {
         return false;
     }
     return $this->reportMetrics[$category->getName()];
 }