/** * @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()); }
/** * @param Category $category * * @return bool */ public function getReportMetrics(Category $category) { if (!isset($this->reportMetrics[$category->getName()])) { return false; } return $this->reportMetrics[$category->getName()]; }