[ Index ]

PHP Cross Reference of phpBB-3.3.12-deutsch

title

Body

[close]

/vendor/symfony/event-dispatcher/ -> GenericEvent.php (summary)

(no description)

File Size: 175 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

GenericEvent:: (12 methods):
  __construct()
  getSubject()
  getArgument()
  setArgument()
  getArguments()
  setArguments()
  hasArgument()
  offsetGet()
  offsetSet()
  offsetUnset()
  offsetExists()
  getIterator()


Class: GenericEvent  - X-Ref

Event encapsulation class.

Encapsulates events thus decoupling the observer from the subject they encapsulate.

__construct($subject = null, array $arguments = [])   X-Ref
Encapsulate an event with $subject and $args.

param: mixed $subject   The subject of the event, usually an object or a callable
param: array $arguments Arguments to store in the event

getSubject()   X-Ref
Getter for subject property.

return: mixed The observer subject

getArgument($key)   X-Ref
Get argument by key.

return: mixed Contents of array key
param: string $key Key

setArgument($key, $value)   X-Ref
Add argument to event.

return: $this
param: string $key   Argument name
param: mixed  $value Value

getArguments()   X-Ref
Getter for all arguments.

return: array

setArguments(array $args = [])   X-Ref
Set args property.

return: $this
param: array $args Arguments

hasArgument($key)   X-Ref
Has argument.

return: bool
param: string $key Key of arguments array

offsetGet($key)   X-Ref
ArrayAccess for argument getter.

return: mixed
param: string $key Array key

offsetSet($key, $value)   X-Ref
ArrayAccess for argument setter.

param: string $key   Array key to set
param: mixed  $value Value

offsetUnset($key)   X-Ref
ArrayAccess for unset argument.

param: string $key Array key

offsetExists($key)   X-Ref
ArrayAccess has argument.

return: bool
param: string $key Array key

getIterator()   X-Ref
IteratorAggregate for iterating over the object like an array.

return: \ArrayIterator



Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1