TestSampleClass.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Reflection
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @see Zend_Loader
  24. */
  25. require_once 'Zend/Loader.php';
  26. /**
  27. * @see Zend_Reflection_File
  28. */
  29. require_once 'Zend/Reflection/File.php';
  30. /**
  31. * This is a sample class docblock
  32. */
  33. class Zend_Reflection_TestSampleClass extends ArrayObject
  34. {
  35. }
  36. class Zend_Reflection_TestSampleClass2 implements IteratorAggregate
  37. {
  38. protected $_prop1 = null;
  39. protected $_prop2 = null;
  40. public function getProp1()
  41. {
  42. return $this->_prop1;
  43. }
  44. public function getProp2($param1, Zend_Reflection_TestSampleClass $param2)
  45. {
  46. return $this->_prop2;
  47. }
  48. public function getIterator()
  49. {
  50. return array();
  51. }
  52. }
  53. /**
  54. * Blah Blah
  55. *
  56. */
  57. abstract class Zend_Reflection_TestSampleClass3 extends ArrayObject implements Iterator, Traversable
  58. {
  59. }
  60. interface Zend_Reflection_TestSampleClassInterface
  61. {
  62. }
  63. class Zend_Reflection_TestSampleClass4 implements Zend_Reflection_TestSampleClassInterface
  64. {
  65. }
  66. /**
  67. * TestSampleClass5 Docblock Short Desc
  68. *
  69. * This is a long description for
  70. * the docblock of this class, it
  71. * should be longer than 3 lines.
  72. * It indeed is longer than 3 lines
  73. * now.
  74. *
  75. * @author Ralph Schindler <ralph.schindler@zend.com>
  76. */
  77. class Zend_Reflection_TestSampleClass5 {
  78. /**
  79. * Method ShortDescription
  80. *
  81. * Method LongDescription
  82. * This is a long description for
  83. * the docblock of this class, it
  84. * should be longer than 3 lines.
  85. * It indeed is longer than 3 lines
  86. * now.
  87. *
  88. * @param int $one Description for one
  89. * @param int Description for two
  90. * @param string $three Description for three
  91. * which spans multiple lines
  92. * @return mixed Some return descr
  93. */
  94. public function doSomething($one, $two = 2, $three = 'three')
  95. {
  96. return 'mixedValue';
  97. }
  98. /**
  99. * Method ShortDescription
  100. *
  101. * @param int $one Description for one
  102. * @param int Description for two
  103. * @param string $three Description for three
  104. * which spans multiple lines
  105. * @return int
  106. */
  107. public function doSomethingElse($one, $two = 2, $three = 'three')
  108. {
  109. return 'mixedValue';
  110. }
  111. }
  112. /**
  113. * Enter description here...
  114. *
  115. * @param string $one
  116. * @param int $two
  117. * @return true
  118. */
  119. function zend_reflection_test_sample_function6($one, $two = 2) {
  120. return true;
  121. }