ICanBoogie
  • Documentation
  • API Reference
  • HTTP master
Namespaces
  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher
Classes
  • Context

Class Context

The context of a request.

This is a general purpose container used to store the objects and variables related to a request.

ICanBoogie\HTTP\Request\Context implements ArrayAccess uses ICanBoogie\PrototypeTrait (not available)
Namespace: ICanBoogie\HTTP\Request
Located at Request/Context.php

Methods summary

protected get_request( void ) : ICanBoogie\HTTP\Request

Returns

ICanBoogie\HTTP\Request
protected set_dispatcher( ICanBoogie\HTTP\Dispatcher|null $dispatcher )

Sets the dispatcher currently dispatching the request.

Sets the dispatcher currently dispatching the request.

Parameters

$dispatcher

Throws

InvalidArgumentException
if the value is not null and does not implements ICanBoogie\HTTP\Dispatcher.
protected get_dispatcher( void ) : ICanBoogie\HTTP\Dispatcher|null

Returns

ICanBoogie\HTTP\Dispatcher|null
public __construct( ICanBoogie\HTTP\Request $request )

Parameters

$request
The request the context belongs to.
public offsetExists( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetExists()
public offsetGet( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetGet()
public offsetSet( $property, $value )

Inheritdoc

Implementation of

ArrayAccess::offsetSet()
public offsetUnset( $property )

Inheritdoc

Implementation of

ArrayAccess::offsetUnset()

Properties summary

Magic properties

public $dispatcher : ICanBoogie\HTTP\Dispatcher

The dispatcher currently dispatching the request.

public read-only $request : ICanBoogie\HTTP\Request

The request associated with the context.

HTTP master – Check on GitHub – API documentation generated by ApiGen