-
Notifications
You must be signed in to change notification settings - Fork 0
/
StoreReviewRepositoryInterface.php
executable file
·63 lines (54 loc) · 1.39 KB
/
StoreReviewRepositoryInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
namespace Inchoo\StoreReview\Api;
use Inchoo\StoreReview\Api\Data\StoreReviewInterface;
use Inchoo\StoreReview\Model\StoreReview;
use Magento\Framework\Api\SearchCriteriaInterface;
use Magento\Framework\Exception\LocalizedException;
interface StoreReviewRepositoryInterface
{
/**
* Save news.
*
* @param StoreReviewInterface $review
* @return StoreReviewInterface
* @throws LocalizedException
*/
public function save(StoreReview $review);
/**
* Delete news.
*
* @param StoreReviewInterface $review
* @return bool true on success
* @throws LocalizedException
*/
public function delete(StoreReview $review);
/**
* Retrieve news.
*
* @param int
* @return StoreReviewInterface
* @throws LocalizedException
*/
public function getById($id);
/**
* @param SearchCriteriaInterface $searchCriteria
* @return StoreReviewInterface[]
* @throws LocalizedException
*/
public function getList(SearchCriteriaInterface $searchCriteria);
/**
* Retrieve news.
*
* @param int
* @return StoreReviewInterface
* @throws LocalizedException
*/
public function getByStore($id);
public function insertRecord($params = []);
/**
* Delete review with id
* @param int $id
* @return mixed|bool
*/
public function deleteById($id);
}