MyClass) */ public function caseSensitive($a1, $a2, $a3, arRay $a4, $a5, $a6, myclas $a7) { }//end caseSensitive() /** * More type hint check for custom type and array. * * @param array $a1 Comment here. * @param array $a2 Comment here. * @param MyClass $a3 Comment here. * @param MyClass $a4 Comment here. * * @since 4.0.0 * @return array(int => MyClass) */ public function typeHint(MyClass $a1, $a2, myclass $a3, $a4) { return (3 => 'myclass obj'); }//end typeHint() /** * Mixed variable type separated by a '|'. * * @param array|string $a1 Comment here. * @param mixed $a2 Comment here. * @param string|array $a3 Comment here. * @param MyClass|int $a4 Comment here. * * @since 4.0.0 * @return bool */ public function mixedType($a1, $a2, $a3, $a4) { return true; }//end mixedType() /** * Array type. * * @param array(MyClass) $a1 OK. * @param array() $a2 Invalid type. * @param array( $a3 Typo. * @param array(int) $a4 Use 'array(integer)' instead. * @param array(int => integer) $a5 Use 'array(integer => integer)' instead. * @param array(integer => bool) $a6 Use 'array(integer => boolean)' instead. * @param aRRay $a7 Use 'array' instead. * @param string $a8 String with unknown type hint. * * @since 4.0.0 * @return int */ public function mixedArrayType($a1, $a2, array $a3, $a4, $a5, $a6, $a7, unknownTypeHint $a8) { return 1; }//end mixedArrayType() /** */ function empty1() { }//end empty1() /** * */ function empty2() { }//end empty2() /** * * * */ function empty3() { }//end empty3 /** * @since 4.0.0 * @return boolean */ public function missingShortDescriptionInFunctionComment() { return true; }//end missingShortDescriptionInFunctionComment() class Another_Class { /** * Destructor should not include a return tag. * * @since 4.0.0 * @return void */ function __destruct() { return; } /** * Constructor should not include a return tag. * * @return void */ function __construct() { return; } }//end class /** * Comment param alignment test. * * @param string $varrr1 Comment1.. * @param string $vr2 Comment2. * @param string $var3 Comment3.. * * @since 4.0.0 * @return void */ public static function paramAlign($varrr1, $vr2, $var3) { }//end paramAlign() /** * Comment. * * @param string $id Comment. * @param array $design Comment. * * @since 4.0.0 * @return void */ public static function paint($id, array $design) { }//end paint() /** * Adds specified class name to class attribute of this widget. * * @since 4.0.0 * @return string */ public function myFunction() { if ($condition === FALSE) { echo 'hi'; } }//end myFunction() /** * Adds specified class name to class attribute of this widget. * * @since 4.0.0 * @return string */ public function myFunction() { if ($condition === FALSE) { echo 'hi'; return; } return 'blah'; }//end myFunction() /** * Adds specified class name to class attribute of this widget. * * @since 4.0.0 * @return string */ public function myFunction() { if ($condition === FALSE) { echo 'hi'; } return 'blah'; }//end myFunction() /** * Test function. * * @param string $arg1 An argument * * @access public * @return bool */ echo $blah; function myFunction($arg1) {} class MyClass() { /** * An abstract function. * * @since 4.0.0 * @return array(string) */ abstract final protected function myFunction(); } /** * Comment. * * @param mixed $test An argument. * * @since 4.0.0 * @return mixed */ function test($test) { if ($test === TRUE) { return; } return $test; }//end test() ?>