Collection.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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\Model\ResourceModel\UserConfig;
  25. use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
  26. /**
  27. * @SuppressWarnings(PHPMD.CamelCaseMethodName)
  28. * @SuppressWarnings(PHPMD.CamelCasePropertyName)
  29. */
  30. class Collection extends AbstractCollection
  31. {
  32. protected $_idFieldName = 'msp_tfa_user_config_id';
  33. protected function _construct()
  34. {
  35. $this->_init(
  36. \MSP\TwoFactorAuth\Model\UserConfig::class,
  37. \MSP\TwoFactorAuth\Model\ResourceModel\UserConfig::class
  38. );
  39. }
  40. }