TestSampleClass.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?php
  2. /**
  3. * License Info
  4. *
  5. * This is a test File docblock
  6. *
  7. * @author Ralph Schindler
  8. */
  9. /**
  10. * @see Zend_Loader
  11. */
  12. require_once 'Zend/Loader.php';
  13. /**
  14. * @see Zend_Reflection_File
  15. */
  16. require_once 'Zend/Reflection/File.php';
  17. /**
  18. * This is a sample class docblock
  19. *
  20. * blah
  21. */
  22. class Zend_Reflection_TestSampleClass extends ArrayObject
  23. {
  24. }
  25. class Zend_Reflection_TestSampleClass2 implements IteratorAggregate
  26. {
  27. protected $_prop1 = null;
  28. protected $_prop2 = null;
  29. public function getProp1()
  30. {
  31. return $this->_prop1;
  32. }
  33. public function getProp2($param1, Zend_Reflection_TestSampleClass $param2)
  34. {
  35. return $this->_prop2;
  36. }
  37. public function getIterator()
  38. {
  39. return array();
  40. }
  41. }
  42. /**
  43. * Blah Blah
  44. *
  45. */
  46. abstract class Zend_Reflection_TestSampleClass3 extends ArrayObject implements Iterator, Traversable
  47. {
  48. }
  49. interface Zend_Reflection_TestSampleClassInterface
  50. {
  51. }
  52. class Zend_Reflection_TestSampleClass4 implements Zend_Reflection_TestSampleClassInterface
  53. {
  54. }
  55. /**
  56. * TestSampleClass5 Docblock Short Desc
  57. *
  58. * This is a long description for
  59. * the docblock of this class, it
  60. * should be longer than 3 lines.
  61. * It indeed is longer than 3 lines
  62. * now.
  63. *
  64. * @author Ralph Schindler <ralph.schindler@zend.com>
  65. */
  66. class Zend_Reflection_TestSampleClass5 {
  67. /**
  68. * Method ShortDescription
  69. *
  70. * Method LongDescription
  71. * This is a long description for
  72. * the docblock of this class, it
  73. * should be longer than 3 lines.
  74. * It indeed is longer than 3 lines
  75. * now.
  76. *
  77. * @param int $one Description for one
  78. * @param int Description for two
  79. * @param string $three Description for three
  80. * which spans multiple lines
  81. * @return mixed Some return descr
  82. */
  83. public function doSomething($one, $two = 2, $three = 'three')
  84. {
  85. return 'mixedValue';
  86. }
  87. /**
  88. * Method ShortDescription
  89. *
  90. * @param int $one Description for one
  91. * @param int Description for two
  92. * @param string $three Description for three
  93. * which spans multiple lines
  94. * @return int
  95. */
  96. public function doSomethingElse($one, $two = 2, $three = 'three')
  97. {
  98. return 'mixedValue';
  99. }
  100. }
  101. /**
  102. * Enter description here...
  103. *
  104. * @param string $one
  105. * @param int $two
  106. * @return true
  107. */
  108. function zend_reflection_test_sample_function6($one, $two = 2) {
  109. return true;
  110. }