ReflectionInterface.php 901 B

12345678910111213141516171819202122232425262728293031323334
  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. * Wrapper for Reflection API access.
  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 ReflectionInterface
  15. {
  16. /**
  17. * Obtain the data type of a class property.
  18. *
  19. * @param \stdClass $type
  20. * @param string $property
  21. * @return string
  22. */
  23. public function getPropertyType($type, $property);
  24. /**
  25. * Obtain the return type of a class property getter.
  26. *
  27. * @param \stdClass $type
  28. * @param string $getter
  29. * @return string
  30. */
  31. public function getReturnValueType($type, $getter);
  32. }