Capability.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Shipment;
  6. use \Magento\Framework\DataObject;
  7. /**
  8. * Temando Shipment Capability 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\Block
  14. * @author Sebastian Ertner <sebastian.ertner@netresearch.de>
  15. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link http://www.temando.com/
  17. */
  18. class Capability extends DataObject implements CapabilityInterface
  19. {
  20. /**
  21. * Get attribute code
  22. *
  23. * @return string
  24. */
  25. public function getCapabilityId()
  26. {
  27. return $this->getData(CapabilityInterface::CAPABILITY_ID);
  28. }
  29. /**
  30. * Get attribute value
  31. *
  32. * @return mixed[]
  33. */
  34. public function getProperties()
  35. {
  36. return $this->getData(CapabilityInterface::PROPERTIES);
  37. }
  38. }