UserConfigRepositoryInterface.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * MageSpecialist
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Open Software License (OSL 3.0)
  8. * that is bundled with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/osl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to info@magespecialist.it so we can send you a copy immediately.
  14. *
  15. * @category MSP
  16. * @package MSP_TwoFactorAuth
  17. * @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
  18. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  19. */
  20. /**
  21. * Automatically created by MageSpecialist CodeMonkey
  22. * https://github.com/magespecialist/m2-MSP_CodeMonkey
  23. */
  24. namespace MSP\TwoFactorAuth\Api;
  25. /**
  26. * @SuppressWarnings(PHPMD.ShortVariable)
  27. */
  28. interface UserConfigRepositoryInterface
  29. {
  30. /**
  31. * Save object
  32. * @param \MSP\TwoFactorAuth\Api\Data\UserConfigInterface $object
  33. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  34. */
  35. public function save(\MSP\TwoFactorAuth\Api\Data\UserConfigInterface $object);
  36. /**
  37. * Get object by id
  38. * @param int $id
  39. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  40. */
  41. public function getById($id);
  42. /**
  43. * Get by UserId value
  44. * @param int $value
  45. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigInterface
  46. */
  47. public function getByUserId($value);
  48. /**
  49. * Delete object
  50. * @param \MSP\TwoFactorAuth\Api\Data\UserConfigInterface $object
  51. * @return boolean
  52. */
  53. public function delete(\MSP\TwoFactorAuth\Api\Data\UserConfigInterface $object);
  54. /**
  55. * Get a list of object
  56. * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
  57. * @return \MSP\TwoFactorAuth\Api\Data\UserConfigSearchResultsInterface
  58. */
  59. public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
  60. }