Api\StructType\ApiHouseProfileData::setResidents_count PHP Method

setResidents_count() public method

Set residents_count value
public setResidents_count ( integer $residents_count = null ) : ApiHouseProfileData
$residents_count integer
return ApiHouseProfileData
    public function setResidents_count($residents_count = null)
    {
        // validation for constraint: int
        if (!is_null($residents_count) && !is_numeric($residents_count)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($residents_count)), __LINE__);
        }
        $this->residents_count = $residents_count;
        return $this;
    }
ApiHouseProfileData