Api\StructType\ApiАдресРФ::setНаселПункт PHP Method

setНаселПункт() public method

Set НаселПункт value
public setНаселПункт ( string $НаселПункт = null ) : ApiАдресРФ
$НаселПункт string
return ApiАдресРФ
    public function setНаселПункт($НаселПункт = null)
    {
        // validation for constraint: string
        if (!is_null($НаселПункт) && !is_string($НаселПункт)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($НаселПункт)), __LINE__);
        }
        $this->НаселПункт = $НаселПункт;
        return $this;
    }