Documentation.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Documentation Entity
  9. *
  10. * This model contains the data used in the shipping module, not necessarily all
  11. * data available in its webservice representation.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  15. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  16. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  17. * @link http://www.temando.com/
  18. */
  19. class Documentation extends DataObject implements DocumentationInterface
  20. {
  21. /**
  22. * @return string
  23. */
  24. public function getDocumentationId()
  25. {
  26. return $this->getData(self::DOCUMENTATION_ID);
  27. }
  28. /**
  29. * @return string
  30. */
  31. public function getName()
  32. {
  33. return $this->getData(self::NAME);
  34. }
  35. /**
  36. * @return string
  37. */
  38. public function getType()
  39. {
  40. return $this->getData(self::TYPE);
  41. }
  42. /**
  43. * @return string
  44. */
  45. public function getSize()
  46. {
  47. return $this->getData(self::SIZE);
  48. }
  49. /**
  50. * @return string
  51. */
  52. public function getMimeType()
  53. {
  54. return $this->getData(self::MIME_TYPE);
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getUrl()
  60. {
  61. return $this->getData(self::URL);
  62. }
  63. }