for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*/
namespace Commercetools\Core\Request\Zones;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\Zone\Zone;
use Commercetools\Core\Request\AbstractDeleteByKeyRequest;
use Commercetools\Core\Response\ApiResponseInterface;
use Commercetools\Core\Model\MapperInterface;
* @package Commercetools\Core\Request\Zones
* @link https://docs.commercetools.com/http-api-projects-zones.html#delete-zone-by-key
* @method Zone mapResponse(ApiResponseInterface $response)
* @method Zone mapFromResponse(ApiResponseInterface $response, MapperInterface $mapper = null)
class ZoneDeleteByKeyRequest extends AbstractDeleteByKeyRequest
{
protected $resultClass = Zone::class;
* @param string $key
* @param int $version
* @param Context $context
public function __construct($key, $version, Context $context = null)
parent::__construct(ZonesEndpoint::endpoint(), $key, $version, $context);
}
* @return static
public static function ofKeyAndVersion($key, $version, Context $context = null)
return new static($key, $version, $context);