Class StringStream
Token stream iterator created from a string.
-
TokenReflection\Stream\StreamBase
implements
SeekableIterator,
Countable,
ArrayAccess,
Serializable
-
TokenReflection\Stream\StringStream
Methods summary
public
|
#
__construct( string $source, string $fileName )
Constructor.
Creates a token substream from a string.
Parameters
- $source
string $source PHP source code
- $fileName
string $fileName File name
Throws
Overrides
|
Methods inherited from TokenReflection\Stream\StreamBase
__toString(),
count(),
current(),
find(),
findMatchingBracket(),
getFileName(),
getSource(),
getSourcePart(),
getTokenName(),
getTokenValue(),
getType(),
is(),
isWhitespace(),
key(),
next(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
processSource(),
rewind(),
seek(),
serialize(),
skipWhitespaces(),
unserialize(),
valid()
|