/** * @param EqualizableValueSetInterface $set * @param EtalonValueInterface $etalon * @return array */ public function processSet(EqualizableValueSetInterface $set, EtalonValueInterface $etalon) { $set->arrangeRatios(); $result = array(); foreach ($set->getValues() as $value) { $result[] = $this->processValue($value, $etalon); } return $result; }
/** * @return $this */ private function arrangeRatiosFromDependence() { $dependenceValues = $this->dependsOn->getValues(); /** @var EqualizableValueInterface $value */ foreach ($dependenceValues as $i => $value) { $this->values[$i]->setRatio($value->getRatio()); } return $this; }