1 | <?php |
||
17 | class FeaturetoggleRepository implements FeaturetoggleRepositoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var CollectionFactory |
||
21 | */ |
||
22 | private $collectionFactory; |
||
23 | |||
24 | /** |
||
25 | * @var SearchResultsInterface |
||
26 | */ |
||
27 | private $searchResult; |
||
28 | |||
29 | /** |
||
30 | * @var SearchResultsInterfaceFactory |
||
31 | */ |
||
32 | private $searchResultsFactory; |
||
33 | |||
34 | /** |
||
35 | * @var FeaturetoggleRegistry |
||
36 | */ |
||
37 | private $featuretoggleRegistry; |
||
38 | |||
39 | /** |
||
40 | * @var StoreManagerInterface |
||
41 | */ |
||
42 | private $storeManager; |
||
43 | /** |
||
44 | * @param CollectionFactory $collectionFactory |
||
45 | * @param SearchResultsInterface $searchResult |
||
46 | * @param SearchResultsInterfaceFactory $searchResultsFactory |
||
47 | * @param FeaturetoggleRegistry $featuretoggleRegistry |
||
48 | * @param StoreManagerInterface $storeManager |
||
49 | */ |
||
50 | public function __construct( |
||
63 | |||
64 | public function getList(SearchCriteriaInterface $searchCriteria) |
||
79 | |||
80 | public function getById($featuretoggleId) |
||
84 | |||
85 | /** |
||
86 | * @param SearchCriteriaInterface $searchCriteria |
||
87 | * @param FeaturetoggleCollection $collection |
||
88 | */ |
||
89 | private function setFilters(SearchCriteriaInterface $searchCriteria, $collection) |
||
100 | |||
101 | /** |
||
102 | * @param SearchCriteriaInterface $searchCriteria |
||
103 | * @param FeaturetoggleCollection $collection |
||
104 | */ |
||
105 | private function setSortOrder(SearchCriteriaInterface $searchCriteria, $collection) |
||
116 | /** |
||
117 | * @param SearchCriteriaInterface $searchCriteria |
||
118 | * @param FeaturetoggleCollection $collection |
||
119 | */ |
||
120 | private function setPageSize(SearchCriteriaInterface $searchCriteria, $collection) |
||
126 | /** |
||
127 | * @param SearchCriteriaInterface $searchCriteria |
||
128 | * @param FeaturetoggleCollection $collection |
||
129 | */ |
||
130 | private function setCurrentPage(SearchCriteriaInterface $searchCriteria, $collection) |
||
136 | |||
137 | } |
||
138 |