for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jenschude <[email protected]>
*/
namespace Commercetools\Core\Request\ShippingMethods;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\ShippingMethod\ShippingMethod;
use Commercetools\Core\Request\AbstractByKeyGetRequest;
use Commercetools\Core\Response\ApiResponseInterface;
use Commercetools\Core\Model\MapperInterface;
* @package Commercetools\Core\Request\ShippingMethods
* @link https://docs.commercetools.com/http-api-projects-shippingMethods.html#get-shippingmethod-by-key
* @method ShippingMethod mapResponse(ApiResponseInterface $response)
* @method ShippingMethod mapFromResponse(ApiResponseInterface $response, MapperInterface $mapper = null)
class ShippingMethodByKeyGetRequest extends AbstractByKeyGetRequest
{
protected $resultClass = ShippingMethod::class;
* @param string $key
* @param Context $context
public function __construct($key, Context $context = null)
parent::__construct(ShippingMethodsEndpoint::endpoint(), $key, $context);
}
* @return static
public static function ofKey($key, Context $context = null)
return new static($key, $context);