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

Breadcrumb

  1. Drupal Core 11.1.x

EnumInfo.php

Namespace

VariableAnalysis\Lib

File

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

View source
<?php

namespace VariableAnalysis\Lib;


/**
 * Holds details of an enum.
 */
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;
    }

}

Classes

Title Deprecated Summary
EnumInfo Holds details of an enum.
RSS feed
Powered by Drupal