Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MethodDeclarationSniff.php

function MethodDeclarationSniff::__construct

Same name in this branch
  1. 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php \PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods\MethodDeclarationSniff::__construct()

Constructor.

Overrides MethodDeclarationSniff::__construct

File

vendor/drupal/coder/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([
        T_CLASS,
        T_INTERFACE,
        T_TRAIT,
        T_ENUM,
    ], [
        T_FUNCTION,
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal