Newer
Older
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
<?php
namespace NicolasBejean\CategoryWidget\Api;
/**
* Interface CategoryWidgetRepositoryInterface
*
* @category PHP
* @package NicolasBejean\CategoryWidget\Api
* @author Nicolas Béjean <nicolas@bejean.eu>
* @license https://github.com/nicolasbejean/category-widget/blob/master/licence.txt BSD Licence
* @link https://www.bejean.eu
*/
interface CategoryWidgetRepositoryInterface
{
/**
* Save Category Widget
*
* @param \NicolasBejean\CategoryWidget\Api\Data\CategoryWidgetInterface $imageSlider
* @return \NicolasBejean\CategoryWidget\Api\Data\CategoryWidgetInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function save(Data\CategoryWidgetInterface $imageSlider);
/**
* Get Category Widget by ID
*
* @param int $id
* @return \NicolasBejean\CategoryWidget\Api\Data\CategoryWidgetInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getById($id);
/**
* Get Category Widget by list
*
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \NicolasBejean\CategoryWidget\Api\Data\CategoryWidgetSearchResultsInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
/**
* Delete Category Widget
*
* @param \NicolasBejean\CategoryWidget\Api\Data\CategoryWidgetInterface $imageSlider
* @return bool true on success
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function delete(Data\CategoryWidgetInterface $imageSlider);
/**
* Delete Category Widget by ID
*
* @param int $id
* @return bool true on success
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function deleteById($id);
}