for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Commercetools\Core\Request\Me;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Model\ShoppingList\ShoppingList;
use Commercetools\Core\Request\AbstractByKeyGetRequest;
use Commercetools\Core\Response\ApiResponseInterface;
use Commercetools\Core\Model\MapperInterface;
/**
* @package Commercetools\Core\Request\Me
* @link https://docs.commercetools.com/http-api-projects-me-shoppingLists#get-shoppinglist-by-key
* @method ShoppingList mapResponse(ApiResponseInterface $response)
* @method ShoppingList mapFromResponse(ApiResponseInterface $response, MapperInterface $mapper = null)
*/
class MeShoppingListByKeyGetRequest extends AbstractByKeyGetRequest
{
protected $resultClass = ShoppingList::class;
* @param string $key
* @param Context $context
public function __construct($key, Context $context = null)
parent::__construct(MeShoppingListsEndpoint::endpoint(), $key, $context);
}
* @return static
public static function ofKey($key, Context $context = null)
return new static($key, $context);