Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
feat(Reviews): add review delete request
Browse files Browse the repository at this point in the history
Closes #134
  • Loading branch information
Jens Schulze committed Aug 3, 2015
1 parent 70bb257 commit 2c6493e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/Request/Reviews/ReviewDeleteRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/**
* @author @ct-jensschulze <jens.schulze@commercetools.de>
*/

namespace Commercetools\Core\Request\Reviews;


use Commercetools\Core\Model\Common\Context;
use Commercetools\Core\Request\AbstractDeleteRequest;

/**
* @package Commercetools\Core\Request\Reviews
*/
class ReviewDeleteRequest extends AbstractDeleteRequest
{
protected $resultClass = '\Commercetools\Core\Model\Review\Review';

/**
* @param string $id
* @param int $version
* @param Context $context
*/
public function __construct($id, $version, Context $context = null)
{
parent::__construct(ReviewsEndpoint::endpoint(), $id, $version, $context);
}

/**
* @param string $id
* @param int $version
* @param Context $context
* @return static
*/
public static function ofIdAndVersion($id, $version, Context $context = null)
{
return new static($id, $version, $context);
}
}

0 comments on commit 2c6493e

Please # to comment.