Store.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Eav\Model\Entity;
  7. /**
  8. * @api
  9. * @method int getEntityTypeId()
  10. * @method \Magento\Eav\Model\Entity\Store setEntityTypeId(int $value)
  11. * @method int getStoreId()
  12. * @method \Magento\Eav\Model\Entity\Store setStoreId(int $value)
  13. * @method string getIncrementPrefix()
  14. * @method \Magento\Eav\Model\Entity\Store setIncrementPrefix(string $value)
  15. * @method string getIncrementLastId()
  16. * @method \Magento\Eav\Model\Entity\Store setIncrementLastId(string $value)
  17. * @since 100.0.2
  18. */
  19. class Store extends \Magento\Framework\Model\AbstractModel
  20. {
  21. /**
  22. * Resource initialization
  23. *
  24. * @return void
  25. * @codeCoverageIgnore
  26. */
  27. protected function _construct()
  28. {
  29. $this->_init(\Magento\Eav\Model\ResourceModel\Entity\Store::class);
  30. }
  31. /**
  32. * Load entity by store
  33. *
  34. * @param int $entityTypeId
  35. * @param int $storeId
  36. * @return $this
  37. * @codeCoverageIgnore
  38. */
  39. public function loadByEntityStore($entityTypeId, $storeId)
  40. {
  41. $this->_getResource()->loadByEntityStore($this, $entityTypeId, $storeId);
  42. return $this;
  43. }
  44. }