You are here

public function MethodDeclarationSniff::__construct in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/Drupal/Sniffs/Methods/MethodDeclarationSniff.php \Drupal\Sniffs\Methods\MethodDeclarationSniff::__construct()
  2. 8.3.x 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\Methods

Code

public function __construct() {
  AbstractScopeSniff::__construct(array(
    T_CLASS,
    T_INTERFACE,
    T_TRAIT,
  ), array(
    T_FUNCTION,
  ));
}