Api\StructType\ApiAddressDelivery_Type::setCity PHP Method

setCity() public method

Set City value
public setCity ( string $city = null ) : ApiAddressDelivery_Type
$city string
return ApiAddressDelivery_Type
    public function setCity($city = null)
    {
        // validation for constraint: string
        if (!is_null($city) && !is_string($city)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
        }
        $this->City = $city;
        return $this;
    }