src/Request/ProductTypes/ProductTypeDeleteByKeyRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#delete-product-type-by-key |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeDeleteByKeyRequest extends AbstractDeleteByKeyRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $key |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($key, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $key, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $key |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofKeyAndVersion($key, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($key, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/ProductTypes/ProductTypeDeleteRequest.php 1 location
|
@@ 18-42 (lines=25) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#delete-product-type |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeDeleteRequest extends AbstractDeleteRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param int $version |
| 25 |
|
* @param Context $context |
| 26 |
|
*/ |
| 27 |
|
public function __construct($id, $version, Context $context = null) |
| 28 |
|
{ |
| 29 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $id, $version, $context); |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
/** |
| 33 |
|
* @param string $id |
| 34 |
|
* @param int $version |
| 35 |
|
* @param Context $context |
| 36 |
|
* @return static |
| 37 |
|
*/ |
| 38 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 39 |
|
{ |
| 40 |
|
return new static($id, $version, $context); |
| 41 |
|
} |
| 42 |
|
} |
| 43 |
|
|
src/Request/ProductTypes/ProductTypeUpdateByKeyRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#update-product-type-by-key |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeUpdateByKeyRequest extends AbstractUpdateByKeyRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $key |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($key, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $key, $version, $actions, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $key |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofKeyAndVersion($key, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($key, $version, [], $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/ProductTypes/ProductTypeUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-productTypes.html#update-product-type-by-id |
| 16 |
|
* @method ProductType mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class ProductTypeUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\ProductType\ProductType'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(ProductTypesEndpoint::endpoint(), $id, $version, $actions, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $id |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($id, $version, [], $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/Types/TypeDeleteByKeyRequest.php 1 location
|
@@ 19-43 (lines=25) @@
|
| 16 |
|
* @link https://dev.commercetools.com/http-api-projects-types.html#delete-type-by-key |
| 17 |
|
* @method Type mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class TypeDeleteByKeyRequest extends AbstractDeleteByKeyRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Type\Type'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $id |
| 25 |
|
* @param int $version |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(TypesEndpoint::endpoint(), $id, $version, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $key |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofKeyAndVersion($key, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($key, $version, $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/Reviews/ReviewUpdateByKeyRequest.php 1 location
|
@@ 19-44 (lines=26) @@
|
| 16 |
|
* @link https://dev.commercetools.com/http-api-projects-reviews.html#update-review |
| 17 |
|
* @method Review mapResponse(ApiResponseInterface $response) |
| 18 |
|
*/ |
| 19 |
|
class ReviewUpdateByKeyRequest extends AbstractUpdateByKeyRequest |
| 20 |
|
{ |
| 21 |
|
protected $resultClass = '\Commercetools\Core\Model\Review\Review'; |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @param string $key |
| 25 |
|
* @param string $version |
| 26 |
|
* @param array $actions |
| 27 |
|
* @param Context $context |
| 28 |
|
*/ |
| 29 |
|
public function __construct($key, $version, array $actions = [], Context $context = null) |
| 30 |
|
{ |
| 31 |
|
parent::__construct(ReviewsEndpoint::endpoint(), $key, $version, $actions, $context); |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
/** |
| 35 |
|
* @param string $key |
| 36 |
|
* @param int $version |
| 37 |
|
* @param Context $context |
| 38 |
|
* @return static |
| 39 |
|
*/ |
| 40 |
|
public static function ofKeyAndVersion($key, $version, Context $context = null) |
| 41 |
|
{ |
| 42 |
|
return new static($key, $version, [], $context); |
| 43 |
|
} |
| 44 |
|
} |
| 45 |
|
|
src/Request/Types/TypeUpdateByKeyRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* @link https://dev.commercetools.com/http-api-projects-types.html#update-type-by-key |
| 16 |
|
* @method Type mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class TypeUpdateByKeyRequest extends AbstractUpdateByKeyRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Type\Type'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $key |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($key, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(TypesEndpoint::endpoint(), $key, $version, $actions, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $key |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofKeyAndVersion($key, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($key, $version, [], $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
src/Request/Me/MeCartUpdateRequest.php 1 location
|
@@ 18-43 (lines=26) @@
|
| 15 |
|
* |
| 16 |
|
* @method Cart mapResponse(ApiResponseInterface $response) |
| 17 |
|
*/ |
| 18 |
|
class MeCartUpdateRequest extends AbstractUpdateRequest |
| 19 |
|
{ |
| 20 |
|
protected $resultClass = '\Commercetools\Core\Model\Cart\Cart'; |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @param string $id |
| 24 |
|
* @param string $version |
| 25 |
|
* @param array $actions |
| 26 |
|
* @param Context $context |
| 27 |
|
*/ |
| 28 |
|
public function __construct($id, $version, array $actions = [], Context $context = null) |
| 29 |
|
{ |
| 30 |
|
parent::__construct(MeCartsEndpoint::endpoint(), $id, $version, $actions, $context); |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @param string $id |
| 35 |
|
* @param int $version |
| 36 |
|
* @param Context $context |
| 37 |
|
* @return static |
| 38 |
|
*/ |
| 39 |
|
public static function ofIdAndVersion($id, $version, Context $context = null) |
| 40 |
|
{ |
| 41 |
|
return new static($id, $version, [], $context); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|