PropertyHandlerInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\SchemaMapper\Reflection;
  6. /**
  7. * Temando Property Handler
  8. *
  9. * @package Temando\Shipping\Rest
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link http://www.temando.com/
  13. */
  14. interface PropertyHandlerInterface
  15. {
  16. /**
  17. * Convert snake case to UpperCamelCase.
  18. *
  19. * @param string $key
  20. * @return string
  21. */
  22. public function camelizeUp($key);
  23. /**
  24. * Convert snake case to lowerCamelCase.
  25. *
  26. * @param string $key
  27. * @return string
  28. */
  29. public function camelizeLow($key);
  30. /**
  31. * Convert Capitalized, UpperCamelCase or lowerCamelCase to snake case.
  32. *
  33. * @param string $key
  34. * @return string
  35. */
  36. public function underscore($key);
  37. /**
  38. * @param string $key
  39. * @return string
  40. */
  41. public function getter($key);
  42. /**
  43. * @param string $key
  44. * @return string
  45. */
  46. public function setter($key);
  47. }