Api\StructType\ApiHouseProfileData::setThermal_actual_expense PHP 메소드

setThermal_actual_expense() 공개 메소드

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