ShippingCategory.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. namespace Cpcommerce\ShippingNotifications\Model;
  3. use \Magento\Framework\Model\AbstractModel;
  4. use \Magento\Framework\DataObject\IdentityInterface;
  5. use \Cpcommerce\ShippingNotifications\Api\Data\ShippingCategoryInterface;
  6. class ShippingCategory extends AbstractModel implements ShippingCategoryInterface
  7. {
  8. protected function _construct()
  9. {
  10. $this->_init('Cpcommerce\ShippingNotifications\Model\ResourceModel\ShippingCategory');
  11. }
  12. /**
  13. * Get Ship Categ Id
  14. *
  15. * @return int|null
  16. */
  17. public function getShipCategId()
  18. {
  19. return $this->getData(self::SHIP_CATEG_ID);
  20. }
  21. /**
  22. * Set Ship Categ Id
  23. *
  24. * @param int $shipCategId
  25. * @return $this
  26. */
  27. public function setShipCategId($shipCategId)
  28. {
  29. return $this->setData(self::SHIP_CATEG_ID, $shipCategId);
  30. }
  31. /**
  32. * Get Option Id
  33. *
  34. * @return int|null
  35. */
  36. public function getOptionId()
  37. {
  38. return $this->getData(self::OPTION_ID);
  39. }
  40. /**
  41. * Set Option Id
  42. *
  43. * @param int $optionId
  44. * @return $this
  45. */
  46. public function setOptionId($optionId)
  47. {
  48. return $this->setData(self::OPTION_ID, $optionId);
  49. }
  50. /**
  51. * Get Is Delayed
  52. *
  53. * @return int|null
  54. */
  55. public function getIsDelayed()
  56. {
  57. return $this->getData(self::IS_DELAYED);
  58. }
  59. /**
  60. * Set Option Id
  61. *
  62. * @param int $isDelayed
  63. * @return $this
  64. */
  65. public function setIsDelayed($isDelayed)
  66. {
  67. return $this->setIsDelayed(self::IS_DELAYED, $isDelayed);
  68. }
  69. }