REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.96 KB
Close
/opt/cpanel/ea-wappspector/vendor/theseer/tokenizer/src/TokenCollection.php
Text
Base64
<?php declare(strict_types = 1); namespace TheSeer\Tokenizer; use ArrayAccess; use ArrayIterator; use Countable; use Iterator; use IteratorAggregate; /** * @implements IteratorAggregate<int, Token> */ class TokenCollection implements IteratorAggregate, ArrayAccess, Countable { /** @var Token[] */ private $tokens = []; public function addToken(Token $token): void { $this->tokens[] = $token; } public function getIterator(): Iterator { return new ArrayIterator($this->tokens); } public function count(): int { return \count($this->tokens); } public function offsetExists($offset): bool { return isset($this->tokens[$offset]); } /** * @throws TokenCollectionException */ public function offsetGet($offset): Token { if (!$this->offsetExists($offset)) { throw new TokenCollectionException( \sprintf('No Token at offest %s', $offset) ); } return $this->tokens[$offset]; } /** * @param Token $value * * @throws TokenCollectionException */ public function offsetSet($offset, $value): void { if (!\is_int($offset)) { $type = \gettype($offset); throw new TokenCollectionException( \sprintf( 'Offset must be of type integer, %s given', $type === 'object' ? \get_class($value) : $type ) ); } if (!$value instanceof Token) { $type = \gettype($value); throw new TokenCollectionException( \sprintf( 'Value must be of type %s, %s given', Token::class, $type === 'object' ? \get_class($value) : $type ) ); } $this->tokens[$offset] = $value; } public function offsetUnset($offset): void { unset($this->tokens[$offset]); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Exception.php
102 B
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NamespaceUri.php
595 B
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
NamespaceUriException.php
113 B
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Token.php
644 B
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TokenCollection.php
1.96 KB
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TokenCollectionException.php
116 B
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Tokenizer.php
3.57 KB
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XMLSerializer.php
2.15 KB
lrw-r--r--
2025-11-17 20:03:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).