Overview

Namespaces

  • TokenReflection
    • Broker
      • Backend
    • Dummy
    • Exception
    • Invalid
    • Php
    • Stream

Classes

  • FileStream
  • StreamBase
  • StringStream
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class StringStream

Token stream iterator created from a string.

TokenReflection\Stream\StreamBase implements SeekableIterator, Countable, ArrayAccess, Serializable
Extended by TokenReflection\Stream\StringStream
Namespace: TokenReflection\Stream
Located at Stream/StringStream.php
Methods summary
public
# __construct( string $source, string $fileName )

Constructor.

Constructor.

Creates a token substream from a string.

Parameters

$source
string
$source PHP source code
$fileName
string
$fileName File name

Throws

TokenReflection\Exception\StreamException
If tokenizer PHP extension is missing.

Overrides

TokenReflection\Stream\StreamBase::__construct()
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()
Properties inherited from TokenReflection\Stream\StreamBase
$fileName
PHP Token Reflection API documentation generated by ApiGen 2.8.0