public loadClosest ( integer $unit_id = null ) | ||
$unit_id | integer |
public function loadClosest($unit_id = null)
{
$base_value = $this->value;
if ($base_value) {
$value = $this->getClosest($base_value, $unit_id);
$this->value = $value->base_value;
}
}