Overview

Namespaces

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

Classes

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

Class FileStream

Token stream iterator created from a file.

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

Constructor.

Constructor.

Creates a token substream from a file.

Parameters

$fileName
string
$fileName File name

Throws

TokenReflection\Exception\StreamException
If the file does not exist or is not readable.

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