Api\StructType\ApiHouseProfileData::setArea_non_residential PHP Method

setArea_non_residential() public method

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