Api\StructType\ApiAddressDelivery_Type::setCity PHP Метод

setCity() публичный Метод

Set City value
public setCity ( string $city = null ) : ApiAddressDelivery_Type
$city string
Результат 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;
    }