Api\StructType\ApiHouseProfileData::setArea_private PHP Method

setArea_private() public method

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