Open Journal Systems  3.3.0
Http\Message\Decorator Namespace Reference

Functions

 __toString ()
 
 close ()
 
 detach ()
 
 eof ()
 
 getBody ()
 
 getContents ()
 
 getHeader ($header)
 
 getHeaderLine ($header)
 
 getHeaders ()
 
 getMessage ()
 
 getMetadata ($key=null)
 
 getProtocolVersion ()
 
 getSize ()
 
 hasHeader ($header)
 
 isReadable ()
 
 isSeekable ()
 
 isWritable ()
 
 read ($length)
 
 rewind ()
 
 seek ($offset, $whence=SEEK_SET)
 
 tell ()
 
 withAddedHeader ($header, $value)
 
 withBody (StreamInterface $body)
 
 withHeader ($header, $value)
 
 withoutHeader ($header)
 
 withProtocolVersion ($version)
 
 write ($string)
 

Variables

trait MessageDecorator
 
trait StreamDecorator
 

Function Documentation

◆ __toString()

Http\Message\Decorator\__toString ( )

{}

Definition at line 25 of file StreamDecorator.php.

◆ close()

Http\Message\Decorator\close ( )

{}

Definition at line 33 of file StreamDecorator.php.

◆ detach()

Http\Message\Decorator\detach ( )

{}

Definition at line 41 of file StreamDecorator.php.

◆ eof()

Http\Message\Decorator\eof ( )

{}

Definition at line 65 of file StreamDecorator.php.

◆ getBody()

Http\Message\Decorator\getBody ( )

{}

Definition at line 121 of file MessageDecorator.php.

◆ getContents()

Http\Message\Decorator\getContents ( )

{}

Definition at line 129 of file StreamDecorator.php.

◆ getHeader()

Http\Message\Decorator\getHeader (   $header)

{}

Definition at line 72 of file MessageDecorator.php.

◆ getHeaderLine()

Http\Message\Decorator\getHeaderLine (   $header)

{}

Definition at line 80 of file MessageDecorator.php.

◆ getHeaders()

Http\Message\Decorator\getHeaders ( )

{}

Definition at line 56 of file MessageDecorator.php.

◆ getMessage()

Http\Message\Decorator\getMessage ( )

Returns the decorated message.

Since the underlying Message is immutable as well exposing it is not an issue, because it's state cannot be altered

Returns
MessageInterface

Definition at line 29 of file MessageDecorator.php.

◆ getMetadata()

Http\Message\Decorator\getMetadata (   $key = null)

{}

Definition at line 137 of file StreamDecorator.php.

◆ getProtocolVersion()

Http\Message\Decorator\getProtocolVersion ( )

{}

Definition at line 37 of file MessageDecorator.php.

◆ getSize()

Http\Message\Decorator\getSize ( )

{}

Definition at line 49 of file StreamDecorator.php.

◆ hasHeader()

Http\Message\Decorator\hasHeader (   $header)

{}

Definition at line 64 of file MessageDecorator.php.

◆ isReadable()

Http\Message\Decorator\isReadable ( )

{}

Definition at line 113 of file StreamDecorator.php.

◆ isSeekable()

Http\Message\Decorator\isSeekable ( )

{}

Definition at line 73 of file StreamDecorator.php.

◆ isWritable()

Http\Message\Decorator\isWritable ( )

{}

Definition at line 97 of file StreamDecorator.php.

◆ read()

Http\Message\Decorator\read (   $length)

{}

Definition at line 121 of file StreamDecorator.php.

◆ rewind()

Http\Message\Decorator\rewind ( )

{}

Definition at line 89 of file StreamDecorator.php.

◆ seek()

Http\Message\Decorator\seek (   $offset,
  $whence = SEEK_SET 
)

{}

Definition at line 81 of file StreamDecorator.php.

◆ tell()

Http\Message\Decorator\tell ( )

{}

Definition at line 57 of file StreamDecorator.php.

◆ withAddedHeader()

Http\Message\Decorator\withAddedHeader (   $header,
  $value 
)

{}

Definition at line 99 of file MessageDecorator.php.

◆ withBody()

Http\Message\Decorator\withBody ( StreamInterface  $body)

{}

Definition at line 129 of file MessageDecorator.php.

◆ withHeader()

Http\Message\Decorator\withHeader (   $header,
  $value 
)

{}

Definition at line 88 of file MessageDecorator.php.

◆ withoutHeader()

Http\Message\Decorator\withoutHeader (   $header)

{}

Definition at line 110 of file MessageDecorator.php.

◆ withProtocolVersion()

Http\Message\Decorator\withProtocolVersion (   $version)

{}

Definition at line 45 of file MessageDecorator.php.

◆ write()

Http\Message\Decorator\write (   $string)

{}

Definition at line 105 of file StreamDecorator.php.

Variable Documentation

◆ MessageDecorator

trait Http::Message::Decorator\MessageDecorator
Initial value:
{
private $message
Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 12 of file MessageDecorator.php.

◆ StreamDecorator

trait Http::Message::Decorator\StreamDecorator
Initial value:
{
protected $stream

Decorates a stream.

Author
Márk Sági-Kazár mark..nosp@m.sagi.nosp@m.kazar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 13 of file StreamDecorator.php.