for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author @jayS-de <[email protected]>
* @created: 26.01.15, 17:25
*/
namespace Commercetools\Core\Request;
use Psr\Http\Message\ResponseInterface;
use Commercetools\Core\Client;
use Commercetools\Core\Client\HttpMethod;
use Commercetools\Core\Client\HttpRequest;
use Commercetools\Core\Client\JsonEndpoint;
use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Response\ResourceResponse;
* @package Commercetools\Core\Request
* @method ResourceResponse executeWithClient(Client $client)
abstract class AbstractByKeyGetRequest extends AbstractByIdGetRequest
{
* @return string
public function getKey()
return $this->getId();
}
* @param string $key
* @return $this
public function setKey($key)
return $this->setId($key);
* @internal
protected function getPath()
return (string)$this->getEndpoint() . '/key=' . $this->getKey() . $this->getParamString();