-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathProfileRepositoryInterface.php
46 lines (38 loc) · 1.28 KB
/
ProfileRepositoryInterface.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
<?php
declare(strict_types=1);
namespace ClawRock\Debug\Api;
use ClawRock\Debug\Api\Data\ProfileInterface;
use ClawRock\Debug\Model\Profile\Criteria;
interface ProfileRepositoryInterface
{
/**
* @param \ClawRock\Debug\Api\Data\ProfileInterface $profile
* @return void
* @throws \Magento\Framework\Exception\CouldNotSaveException
*/
public function save(ProfileInterface $profile): void;
/**
* @param string $token
* @return \ClawRock\Debug\Api\Data\ProfileInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getById(string $token): ProfileInterface;
/**
* @param \ClawRock\Debug\Api\Data\ProfileInterface $profile
* @return void
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function delete(ProfileInterface $profile): void;
/**
* @param string $token
* @return void
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function deleteById(string $token): void;
public function find(Criteria $criteria): array;
/**
* @return \ClawRock\Debug\Api\Data\ProfileInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function findLatest(): ProfileInterface;
}