Default event for Guzzle notifications
Expanded class hierarchy of Event
class Event extends SymfonyEvent implements \ArrayAccess, \IteratorAggregate {
/**
* @var array
*/
private $context;
/**
* Constructor
*
* @param array $context Contextual information
*/
public function __construct(array $context = array()) {
$this->context = $context;
}
/**
* {@inheritdoc}
*/
public function getIterator() {
return new \ArrayIterator($this->context);
}
/**
* {@inheritdoc}
*/
public function offsetGet($offset) {
return array_key_exists($offset, $this->context) ? $this->context[$offset] : null;
}
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value) {
$this->context[$offset] = $value;
}
/**
* {@inheritdoc}
*/
public function offsetExists($offset) {
return array_key_exists($offset, $this->context);
}
/**
* {@inheritdoc}
*/
public function offsetUnset($offset) {
unset($this->context[$offset]);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Event:: |
public | function | ||
Event:: |
public | function | ||
Event:: |
public | function | ||
Event:: |
public | function | ||
Event:: |
public | function | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
private | property | ||
Event:: |
public | function | Constructor | |
Event:: |
public | function | Gets the event's name. | |
Event:: |
public | function | Returns the EventDispatcher that dispatches this Event | |
Event:: |
public | function | Returns whether further event listeners should be triggered. | |
Event:: |
public | function | Sets the event's name property. | |
Event:: |
public | function | Stops the propagation of the event to further event listeners. | |
Event:: |
public | function | Stores the EventDispatcher that dispatches this Event |