|
| __construct ( $a) |
| Without return.
|
|
| emptyReturn () |
| A blank return does not require a return tag.
|
|
| test (&$testVar) |
| Single Test function.
|
|
| inherit ( $stuff, $more, $blah) |
| @inheritDoc
|
|
| inherit2 ( $stuff, $more, $blah) |
|
| __toString () |
|
| testShortTypes ( $aBool, $anInt) |
|
| testClosureReturn () |
| There's a return in the body of the function, but no return tag is needed.
|
|
| selfDocumenting () |
|
| getButWeCanSeeThereIsNoReturn () |
|
| getReturnMissing () |
|
| isAbstractSoWeMustAssumeReturnIsMissing () |
|
| isAbstractButAlreadyCommented () |
| This is fine.
|
|
| isFullyDocumented () |
|
| withVariarg ( $key,... $params) |
|
| testCommentsWithDots ( $key) |
|
| t174761 ( $parser, $operator, $oldtext=null) |
|
| nullableDocWithNullableTypeAndDefaultVal (?string $key=null) |
|
| testLowercasePrimative ( $b) |
|
| testObjectTypehintOkay (object $obj) |
|
| testObjectTypehintOkayIntersect (object $obj) |
|
| javaStyle ( $a) |
|
| offsetGet ( $offset) |
| This documentation block should still be accepted despite the attribute between it and the function, test for T306941.
|
|
| multipleAttributeLines (bool $b) |
|
| multipleAttributesSameLine (bool $b) |
|
| staticParamTypesVoid (bool $b, int $i) |
|
| staticParamTypesReturn (bool $b, int $i) |
|
| noParamsVoid () |
|
| noParamsReturn () |
|
| getSomething () |
|
| convertMessage (Message $m) |
| Convert a Message to a MessageValue.
|
|
| f () |
| Normal comment.
|
|
| test ( $a1, $a2) |
| Test should not process local vars.
|
|
|
| $c |
|
| $d |
|
| $dep |
|
| $inherit |
| @inheritDoc
|
|
| $javaStyle |
|
array | $ta |
|
int | $tb |
|
string | $tdoc |
| A variable with prose documentation but only a static type.
|
|
◆ __construct()
TestPassedExamples::__construct |
( |
| $a | ) |
|
Without return.
- Parameters
-
◆ javaStyle()
TestPassedExamples::javaStyle |
( |
| $a | ) |
|
- Parameters
-
- Returns
- array<int, string>
◆ multipleAttributeLines()
TestPassedExamples::multipleAttributeLines |
( |
bool | $b | ) |
|
◆ multipleAttributesSameLine()
TestPassedExamples::multipleAttributesSameLine |
( |
bool | $b | ) |
|
◆ nullableDocWithNullableTypeAndDefaultVal()
TestPassedExamples::nullableDocWithNullableTypeAndDefaultVal |
( |
?string | $key = null | ) |
|
◆ offsetGet()
TestPassedExamples::offsetGet |
( |
| $offset | ) |
|
This documentation block should still be accepted despite the attribute between it and the function, test for T306941.
Same with the next two cases below.
- Parameters
-
- Returns
- mixed
◆ t174761()
TestPassedExamples::t174761 |
( |
| $parser, |
|
|
| $operator, |
|
|
| $oldtext = null ) |
- Parameters
-
$parser | Parser |
$operator | Expected '&' or '|' |
$oldtext | string The content of the revision prior to $content. When null this will be loaded from the database. |
◆ test() [1/2]
TestPassedExamples::test |
( |
| $a1, |
|
|
| $a2 ) |
Test should not process local vars.
- Parameters
-
- Returns
- int
◆ test() [2/2]
TestPassedExamples::test |
( |
& | $testVar | ) |
|
Single Test function.
- Parameters
-
- Returns
- int $testVar For test.
◆ testCommentsWithDots()
TestPassedExamples::testCommentsWithDots |
( |
| $key | ) |
|
◆ testLowercasePrimative()
TestPassedExamples::testLowercasePrimative |
( |
| $b | ) |
|
◆ testObjectTypehintOkay()
TestPassedExamples::testObjectTypehintOkay |
( |
object | $obj | ) |
|
- Parameters
-
- Returns
- Foo|Bar
◆ testObjectTypehintOkayIntersect()
TestPassedExamples::testObjectTypehintOkayIntersect |
( |
object | $obj | ) |
|
◆ testShortTypes()
TestPassedExamples::testShortTypes |
( |
| $aBool, |
|
|
| $anInt ) |
- Parameters
-
bool | $aBool | A bool |
int | $anInt | An int |
- Returns
- bool
◆ withVariarg()
TestPassedExamples::withVariarg |
( |
| $key, |
|
|
| $params ) |
- Parameters
-
string | $key | |
| string | ...$params |
◆ $dep
The documentation for this class was generated from the following files:
- MediaWiki/Tests/files/Commenting/commenting_function.php
- MediaWiki/Tests/files/Commenting/property_documentation.php
- MediaWiki/Tests/files/Commenting/redundant_var_name.php
- MediaWiki/Tests/files/Commenting/doc_commenting.php