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

Breadcrumb

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

function MethodScopeSniff::__construct

Same name in this branch
  1. 11.1.x vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/Scope/MethodScopeSniff.php \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\MethodScopeSniff::__construct()

Constructs a \PHP_CodeSniffer\Standards\Squiz\Sniffs\Scope\MethodScopeSniff.

Overrides AbstractScopeSniff::__construct

File

vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Scope/MethodScopeSniff.php, line 35

Class

MethodScopeSniff
Verifies that class/interface/trait methods have scope modifiers.

Namespace

Drupal\Sniffs\Scope

Code

public function __construct() {
    parent::__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