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

Breadcrumb

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

class EnumInfo

Holds details of an enum.

Hierarchy

  • class \VariableAnalysis\Lib\EnumInfo

Expanded class hierarchy of EnumInfo

1 file declares its use of EnumInfo
Helpers.php in vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/Helpers.php

File

vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis/Lib/EnumInfo.php, line 8

Namespace

VariableAnalysis\Lib
View source
class EnumInfo {
    
    /**
     * The position of the `enum` token.
     *
     * @var int
     */
    public $enumIndex;
    
    /**
     * The position of the block opener (curly brace) for the enum.
     *
     * @var int
     */
    public $blockStart;
    
    /**
     * The position of the block closer (curly brace) for the enum.
     *
     * @var int
     */
    public $blockEnd;
    
    /**
     * @param int $enumIndex
     * @param int $blockStart
     * @param int $blockEnd
     */
    public function __construct($enumIndex, $blockStart, $blockEnd) {
        $this->enumIndex = $enumIndex;
        $this->blockStart = $blockStart;
        $this->blockEnd = $blockEnd;
    }

}

Members

Title Sort descending Modifiers Object type Summary
EnumInfo::$blockEnd public property * The position of the block closer (curly brace) for the enum.
*
*
EnumInfo::$blockStart public property * The position of the block opener (curly brace) for the enum.
*
*
EnumInfo::$enumIndex public property * The position of the `enum` token.
*
*
EnumInfo::__construct public function *
RSS feed
Powered by Drupal