Api\StructType\ApiHouseProfileData::setArea_municipal PHP Method

setArea_municipal() public method

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