| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?php
- /**
- * License Info
- *
- * This is a test File docblock
- *
- * @author Ralph Schindler
- */
- /**
- * @see Zend_Loader
- */
- require_once 'Zend/Loader.php';
- /**
- * @see Zend_Reflection_File
- */
- require_once 'Zend/Reflection/File.php';
- /**
- * This is a sample class docblock
- *
- * blah
- */
- class Zend_Reflection_TestSampleClass extends ArrayObject
- {
- }
- class Zend_Reflection_TestSampleClass2 implements IteratorAggregate
- {
- protected $_prop1 = null;
- protected $_prop2 = null;
- public function getProp1()
- {
- return $this->_prop1;
- }
- public function getProp2($param1, Zend_Reflection_TestSampleClass $param2)
- {
- return $this->_prop2;
- }
- public function getIterator()
- {
- return array();
- }
- }
- /**
- * Blah Blah
- *
- */
- abstract class Zend_Reflection_TestSampleClass3 extends ArrayObject
- {
- }
- interface Zend_Reflection_TestSampleClassInterface
- {
- }
- class Zend_Reflection_TestSampleClass4 implements Zend_Reflection_TestSampleClassInterface
- {
- }
- /**
- * TestSampleClass5 Docblock Short Desc
- *
- * This is a long description for
- * the docblock of this class, it
- * should be longer than 3 lines.
- * It indeed is longer than 3 lines
- * now.
- *
- * @author Ralph Schindler <ralph.schindler@zend.com>
- */
- class Zend_Reflection_TestSampleClass5
- {
- /**
- * Method ShortDescription
- *
- * Method LongDescription
- * This is a long description for
- * the docblock of this class, it
- * should be longer than 3 lines.
- * It indeed is longer than 3 lines
- * now.
- *
- * @param int $one Description for one
- * @param int Description for two
- * @param string $three Description for three
- * which spans multiple lines
- * @return mixed Some return descr
- */
- public function doSomething($one, $two = 2, $three = 'three')
- {
- return 'mixedValue';
- }
- /**
- * Method ShortDescription
- *
- * @param int $one Description for one
- * @param int Description for two
- * @param string $three Description for three
- * which spans multiple lines
- * @return int
- */
- public function doSomethingElse($one, $two = 2, $three = 'three')
- {
- return 'mixedValue';
- }
- }
- /**
- * TestSampleClass6 Docblock Short Desc
- *
- * Testing for formatted dockblock tags. See ZF-6726.
- * (This long description should be longer than 3 lines.
- * It indeed is longer than 3 lines
- * now.)
- *
- * @author Carlton Gibson <carlton.gibson@noumenal.co.uk>
- */
- class Zend_Reflection_TestSampleClass6
- {
- /**
- * Method ShortDescription
- *
- * Notice the multiple spaces aligning the columns in the docblock
- * tags. (This long description should be longer than 3 lines.
- * It indeed is longer than 3 lines
- * now.)
- *
- * @emptyTag
- * @descriptionTag A tag with just a description
- * @param int $var Description of $var
- * @return string Description of return value
- */
- public function doSomething($var)
- {
- //we need a multi-line method body.
- $assigned = 1;
- $alsoAssigined = 2;
- return 'mixedValue';
- }
- }
- /**
- * Enter description here...
- *
- * @param string $one
- * @param int $two
- * @return true
- */
- function zend_reflection_test_sample_function6($one, $two = 2) {
- return true;
- }
- class Zend_Reflection_Docblock_Param_WithNamespace
- {
- /**
- * @param Zend\Foo\Bar $var desc
- * @return Zend\Reflection\Docblock
- */
- public function doSomething()
- {
- }
- }
- class Zend_Reflection_TestSampleClass7
- {
- public function bigMethodSignature($arg1, $arg2, $arg3,
- $arg4, $arg5, $arg6)
- {
- // FUNKY SIGNATURE
- }
- public function testInlineMethod() { return true; }
- }
|