CreationArguments.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Creditmemo;
  7. use Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface;
  8. /**
  9. * Class CreationArguments
  10. */
  11. class CreationArguments implements CreditmemoCreationArgumentsInterface
  12. {
  13. /**
  14. * @var float|null
  15. */
  16. private $shippingAmount;
  17. /**
  18. * @var float|null
  19. */
  20. private $adjustmentPositive;
  21. /**
  22. * @var float|null
  23. */
  24. private $adjustmentNegative;
  25. /**
  26. * @var \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface
  27. */
  28. private $extensionAttributes;
  29. /**
  30. * @inheritdoc
  31. */
  32. public function getShippingAmount()
  33. {
  34. return $this->shippingAmount;
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function getAdjustmentPositive()
  40. {
  41. return $this->adjustmentPositive;
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function getAdjustmentNegative()
  47. {
  48. return $this->adjustmentNegative;
  49. }
  50. /**
  51. * @inheritdoc
  52. */
  53. public function setShippingAmount($amount)
  54. {
  55. $this->shippingAmount = $amount;
  56. return $this;
  57. }
  58. /**
  59. * @inheritdoc
  60. */
  61. public function setAdjustmentPositive($amount)
  62. {
  63. $this->adjustmentPositive = $amount;
  64. return $this;
  65. }
  66. /**
  67. * @inheritdoc
  68. */
  69. public function setAdjustmentNegative($amount)
  70. {
  71. $this->adjustmentNegative = $amount;
  72. return $this;
  73. }
  74. /**
  75. * {@inheritdoc}
  76. */
  77. public function getExtensionAttributes()
  78. {
  79. return $this->extensionAttributes;
  80. }
  81. /**
  82. * {@inheritdoc}
  83. */
  84. public function setExtensionAttributes(
  85. \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
  86. ) {
  87. $this->extensionAttributes = $extensionAttributes;
  88. return $this;
  89. }
  90. }