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/drupal/coder/coder_sniffer/Drupal/Sniffs/Methods/MethodDeclarationSniff.php \Drupal\Sniffs\Methods\MethodDeclarationSniff::__construct()

Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.

Overrides AbstractScopeSniff::__construct

1 method overrides MethodDeclarationSniff::__construct()
MethodDeclarationSniff::__construct in vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Methods/MethodDeclarationSniff.php
Constructor.

File

vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Sniffs/Methods/MethodDeclarationSniff.php, line 23

Class

MethodDeclarationSniff

Namespace

PHP_CodeSniffer\Standards\PSR2\Sniffs\Methods

Code

public function __construct() {
    parent::__construct(Tokens::$ooScopeTokens, [
        T_FUNCTION,
    ]);
}

API Navigation

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