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

Breadcrumb

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

function ConstructorNameSniff::__construct

Constructs the test with the tokens it wishes to listen for.

Overrides AbstractScopeSniff::__construct

File

vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/ConstructorNameSniff.php, line 41

Class

ConstructorNameSniff

Namespace

PHP_CodeSniffer\Standards\Generic\Sniffs\NamingConventions

Code

public function __construct() {
    parent::__construct([
        T_CLASS,
        T_ANON_CLASS,
    ], [
        T_FUNCTION,
    ], true);
}

API Navigation

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