class Test2 in Coder 8.3.x
Same name in this branch
Same name and namespace in other branches
- 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \Test2
- 8.3 tests/Drupal/Classes/ClassCreateInstanceUnitTest.inc \Test2
- 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \Test2
- 8.2 coder_sniffer/Drupal/Test/Classes/ClassCreateInstanceUnitTest.inc \Test2
- 8.2 coder_sniffer/Drupal/Test/good/good.php \Test2
Test class.
Hierarchy
- class \Test2
Expanded class hierarchy of Test2
File
- tests/
Drupal/ Classes/ ClassCreateInstanceUnitTest.inc, line 21
View source
class Test2 {
/**
* Using PHP 7 return type hints is fine.
*
* @return ValidatorInterface[]
* The validators.
*/
public function getValidators() : array {
return [
new PublishedNodesValidator(),
new MinimumNodesValidator($this->nrOfArticles),
new AccessibleOnCurrentDomainValidator($this->sectionService),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Test2:: |
public | function | Using PHP 7 return type hints is fine. |