public function setDeterioration_foundation($deterioration_foundation = null)
{
// validation for constraint: fractionDigits
if (is_float($deterioration_foundation) && strlen(substr($deterioration_foundation, strpos($deterioration_foundation, '.'))) !== 2) {
throw new \InvalidArgumentException(sprintf('Invalid value, the value must at most contain 2 fraction digits, "%d" given', strlen(substr($deterioration_foundation, strpos($deterioration_foundation, '.')))), __LINE__);
}
// validation for constraint: totalDigits
if (is_float($deterioration_foundation) && strlen(str_replace(array(' ', '.', ',', '-', '+'), '', $deterioration_foundation)) !== 15) {
throw new \InvalidArgumentException(sprintf('Invalid value, the value must at most contain 15 digits, "%d" given', strlen(substr($deterioration_foundation, strpos($deterioration_foundation, '.')))), __LINE__);
}
$this->deterioration_foundation = $deterioration_foundation;
return $this;
}