Overview

Namespaces

  • PHPixie
    • Auth
      • Context
        • Container
      • Domains
      • Providers
        • Builder
        • Provider
      • Repositories
        • Registry
        • Repository
    • AuthHTTP
      • Providers
    • AuthLogin
      • Providers
      • Repository
    • AuthORM
      • Repositories
        • Repository
        • Type
          • Login
    • AuthProcessors
      • Processor
    • BundleFramework
      • Configuration
        • FilesystemLocator
        • ORM
    • Bundles
      • Bundle
        • Provides
      • FilesystemLocators
      • Processors
    • Config
      • Formats
        • Format
      • Storages
        • Storage
          • Editable
        • Type
    • Database
      • Conditions
        • Builder
          • Container
          • Operators
        • Condition
          • Collection
          • Field
        • Logic
      • Connection
      • Driver
        • Mongo
          • Conditions
            • Builder
          • Parser
            • Conditions
          • Query
            • Type
        • PDO
          • Adapter
            • Mysql
              • Parser
            • Pgsql
              • Parser
            • Sqlite
              • Parser
          • Conditions
            • Builder
          • Query
            • Type
      • Exception
      • Parser
      • Query
        • Implementation
        • Type
          • Update
      • Type
        • Document
          • Conditions
            • Builder
            • Condition
              • Collection
                • Embedded
                  • Group
                  • Placeholder
          • Query
            • Implementation
        • SQL
          • Conditions
            • Builder
          • Parser
          • Query
            • Implementation
            • Type
      • Values
    • Debug
      • Logger
      • Tracer
        • Trace
    • DefaultBundle
      • Processor
        • HTTP
    • Filesystem
      • Locators
        • Locator
    • Framework
      • Extensions
        • Template
          • Extension
      • Processors
        • HTTP
          • Response
    • HTTP
      • Context
        • Container
        • Cookies
        • Session
      • Data
        • Headers
      • Messages
        • Message
          • Request
            • ServerRequest
        • Stream
        • UploadedFile
        • URI
      • Responses
    • HTTPProcessors
      • Parsers
        • Parser
      • Processor
        • Actions
        • Dispatcher
          • Builder
          • Registry
    • ORM
      • Conditions
        • Builder
        • Condition
          • Collection
            • RelatedTo
          • Field
          • In
      • Configs
      • Data
        • Diff
        • Type
        • Types
          • Document
            • Node
              • ArrayNode
      • Drivers
        • Driver
          • Mongo
          • PDO
          • SQL
      • Exception
      • Loaders
        • Loader
          • Embedded
          • Proxy
          • Repository
      • Mappers
        • Cascade
          • Mapper
        • Conditions
        • Preload
      • Maps
        • Map
          • Cascade
          • Property
      • Models
        • Model
          • Implementation
        • Type
          • Database
            • Implementation
          • Embedded
            • Implementation
      • Planners
        • Planner
          • In
            • Strategy
          • Pivot
            • Strategy
          • Query
            • Strategy
      • Plans
        • Plan
          • Query
      • Relationships
        • Relationship
          • Handler
            • Cascading
            • Mapping
          • Implementation
            • Preloader
              • Result
                • Multiple
            • Property
            • Side
          • Property
            • Entity
          • Side
            • Cascade
            • Property
          • Type
        • Type
          • Embeds
            • Preload
            • Property
            • Side
            • Type
              • Many
                • Preload
                • Property
                  • Entity
                • Side
              • One
                • Preload
                • Property
                  • Entity
                • Side
          • ManyToMany
            • Property
            • Side
          • OneTo
            • Preloader
            • Property
              • Entity
              • Query
            • Side
            • Type
              • Many
                • Preloader
                  • Property
                • Property
                  • Entity
                  • Query
                • Side
                • Value
                  • Preload
              • One
                • Preloader
                • Property
                • Side
      • Steps
        • Result
        • Step
          • Pivot
          • Query
            • Insert
              • Batch
                • Data
            • Result
          • Update
      • Values
        • Preload
          • Property
        • Update
      • Wrappers
        • Model
        • Type
          • Database
          • Embedded
    • Paginate
      • Loader
    • PaginateORM
      • Loader
    • Processors
      • Processor
        • Dispatcher
    • Route
      • Exception
      • Matcher
      • Resolvers
        • Resolver
          • Pattern
      • Translator
    • Security
      • Tokens
        • Storage
          • Database
    • Slice
      • Data
        • Slice
      • Type
        • ArrayData
        • Slice
    • Template
      • Extensions
        • Extension
      • Formats
      • Renderer
    • Test
  • Project
    • App
      • HTTPProcessors
    • Framework
  • Psr
    • Http
      • Message

Classes

  • Implementation
  • StringStream
  • Overview
  • Namespace
  • Class
  • Tree
  • Return

Class StringStream

PSR-7 String stream

PHPixie\HTTP\Messages\Stream\StringStream implements Psr\Http\Message\StreamInterface
Namespace: PHPixie\HTTP\Messages\Stream
Located at vendor/phpixie/http/src/PHPixie/HTTP/Messages/Stream/StringStream.php
Methods summary
public
# __construct( string $string = '' )

Constructor

Constructor

Parameters

$string
public string
# __toString( )

Returns

string

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::__toString()
public
# close( )

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::close()
public resource|null
# detach( )

Returns

resource|null
Underlying PHP stream, if any

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::detach()
public integer|null
# getSize( )

Returns

integer|null
Returns the size in bytes if known, or null if unknown.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::getSize()
public integer
# tell( )

Returns

integer
Position of the file pointer

Throws

RuntimeException
on error.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::tell()
public boolean
# eof( )

Returns

boolean

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::eof()
public boolean
# isSeekable( )

Returns

boolean

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::isSeekable()
public boolean
# isWritable( )

Returns

boolean

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::isWritable()
public boolean
# isReadable( )

Returns

boolean

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::isReadable()
public
# seek( integer $offset, integer $whence = SEEK_SET )

Parameters

$offset
Stream offset
$whence

Specifies how the cursor position will be calculated based on the seek offset. Valid values are identical to the built-in PHP $whence values for fseek(). SEEK_SET: Set position equal to offset bytes SEEK_CUR: Set position to current location plus offset SEEK_END: Set position to end-of-stream plus offset.

Throws

RuntimeException
on failure.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::seek()
public
# rewind( )

Throws

RuntimeException
on failure.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::rewind()
public integer
# write( string $string )

Parameters

$string
The string that is to be written.

Returns

integer
Returns the number of bytes written to the stream.

Throws

RuntimeException
on failure.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::write()
public string
# read( integer $length )

Parameters

$length

Read up to $length bytes from the object and return them. Fewer than $length bytes may be returned if underlying stream call returns fewer bytes.

Returns

string

Returns the data read from the stream, or an empty string if no bytes are available.

Throws

RuntimeException
if an error occurs.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::read()
public string
# getContents( )

Returns

string

Throws

RuntimeException

if unable to read or an error occurs while reading.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::getContents()
public array|mixed|null
# getMetadata( string $key = null )

Parameters

$key
Specific metadata to retrieve.

Returns

array|mixed|null

Returns an associative array if no key is provided. Returns a specific key value if a key is provided and the value is found, or null if the key is not found.

Inheritdoc

Implementation of

Psr\Http\Message\StreamInterface::getMetadata()
protected
# assertNotDetached( )

Throws

RuntimeException
If stream has been detached
Properties summary
protected string $string
#
PHPixie 3 API API documentation generated by ApiGen