class Test2 in Coder 8.2
Same name in this branch
Same name and namespace in other branches
Test class.
Hierarchy
- class \Test2
Expanded class hierarchy of Test2
File
- coder_sniffer/
Drupal/ Test/ good/ good.php, line 1555 - This file contains all the valid notations for the drupal coding standard.
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. |