Example #1
0
 /**
  * @param Difference $difference
  */
 private function populateDifference(Difference $difference)
 {
     $unit = $this->challenger->getUnit();
     $difference->addTag(Difference::UNIT_NAME, $unit->getName());
     $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily());
     $difference->addTag(Difference::CONSTANT_NAME, $this->challenger->getName());
 }
 /**
  * @param Difference $difference
  * @param Constant $constant
  */
 private function populateDifference(Difference $difference, Constant $constant)
 {
     $unit = $constant->getUnit();
     $difference->addTag(Difference::UNIT_NAME, $unit->getName());
     $difference->addTag(Difference::UNIT_FAMILY, $unit->getFamily());
     $difference->addTag(Difference::CONSTANT_NAME, $constant->getName());
 }