MethodDescriptor.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * This file is part of amfPHP
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the license that is bundled
  8. * with this package in the file license.txt.
  9. *
  10. */
  11. /**
  12. * Contains all collected information about a service method.
  13. *
  14. * @author Ariel Sommeria-klein
  15. * @package Amfphp_Plugins_Discovery
  16. */
  17. class AmfphpDiscovery_MethodDescriptor {
  18. /**
  19. * name
  20. * @var string
  21. */
  22. public $name;
  23. /**
  24. *
  25. * @var array of ParameterInfo
  26. */
  27. public $parameters;
  28. /**
  29. *
  30. * @var string method level comment
  31. */
  32. public $comment;
  33. /**
  34. * return type
  35. * @var string
  36. */
  37. public $returnType;
  38. /**
  39. * constructor
  40. * @param string $name
  41. * @param array $parameters
  42. * @param string $comment
  43. * @param string $returnType
  44. */
  45. public function __construct($name, array $parameters, $comment, $returnType) {
  46. $this->name = $name;
  47. $this->parameters = $parameters;
  48. $this->comment = $comment;
  49. $this->returnType = $returnType;
  50. }
  51. }
  52. ?>