public function MethodDeclarationSniff::__construct in Coder 8.3.x
Same name and namespace in other branches
- 8.3 coder_sniffer/Drupal/Sniffs/Methods/MethodDeclarationSniff.php \Drupal\Sniffs\Methods\MethodDeclarationSniff::__construct()
- 8.2 coder_sniffer/Drupal/Sniffs/Methods/MethodDeclarationSniff.php \Drupal\Sniffs\Methods\MethodDeclarationSniff::__construct()
Constructor.
File
- coder_sniffer/
Drupal/ Sniffs/ Methods/ MethodDeclarationSniff.php, line 33
Class
- MethodDeclarationSniff
- Checks that the method declaration is correct.
Namespace
Drupal\Sniffs\MethodsCode
public function __construct() {
AbstractScopeSniff::__construct([
T_CLASS,
T_INTERFACE,
T_TRAIT,
], [
T_FUNCTION,
]);
}