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\LibView 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 | * |