Key = $Key; $this->SearchTerm = $SearchTerm; $this->PreferredLanguage = $PreferredLanguage; $this->Filter = $Filter; $this->UserName = $UserName; } } /** * There should be no dots. * * @param string $a * Some comment. * @param string $b * Another comment. */ function test32($a, $b) { } /** * There should be no dots and comments should be on the next line. * * @param string $a * Some comment. * @param string $b * Another comment. */ function test33($a, $b) { } /** * Yield should be a recognised return statement. * * @return int * Integer value. */ function test34($a, $b) { for ($i = 1; $i <= 3; $i++) { yield $i; } } /** * Using \stdClass as type hint is ok, but not in the documentation. * * @param object $name * Some description. * @param object $param2 * Some description. */ function test35(\stdClass $name, \stdClass $param2) { } /** * Allow "object" as real type hint (PHP 7.2). * * @param object $arg * Something here. * @param object $blarg * Another thing. */ function test36(object $arg, object $blarg) { return $arg; } /** * A class with a method that has the same name as the class. */ class Small { /** * Our small constructor. */ public function __construct() { } /** * Return tag should be allowed here. * * @return string * Something small. */ public function small() { return 'string'; } }