class TokenPointerOutOfBoundsException
@internal
Hierarchy
- class \SlevomatCodingStandard\Helpers\TokenPointerOutOfBoundsException extends \Exception
Expanded class hierarchy of TokenPointerOutOfBoundsException
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Helpers/ TokenPointerOutOfBoundsException.php, line 12
Namespace
SlevomatCodingStandard\HelpersView source
class TokenPointerOutOfBoundsException extends Exception {
/** @var int */
private $pointer;
/** @var int */
private $lastTokenPointer;
public function __construct(int $pointer, int $lastTokenPointer, ?Throwable $previous = null) {
parent::__construct(sprintf('Attempted access to token pointer %d, last token pointer is %d', $pointer, $lastTokenPointer), 0, $previous);
$this->pointer = $pointer;
$this->lastTokenPointer = $lastTokenPointer;
}
public function getPointer() : int {
return $this->pointer;
}
public function getLastTokenPointer() : int {
return $this->lastTokenPointer;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TokenPointerOutOfBoundsException::$lastTokenPointer | private | property | @var int |
TokenPointerOutOfBoundsException::$pointer | private | property | @var int |
TokenPointerOutOfBoundsException::getLastTokenPointer | public | function | |
TokenPointerOutOfBoundsException::getPointer | public | function | |
TokenPointerOutOfBoundsException::__construct | public | function |