You are here

public function GenericEvent::setArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/GenericEvent.php \Symfony\Component\EventDispatcher\GenericEvent::setArgument()

Add argument to event.

Parameters

string $key Argument name.:

mixed $value Value.:

Return value

GenericEvent

1 call to GenericEvent::setArgument()
GenericEvent::offsetSet in vendor/symfony/event-dispatcher/GenericEvent.php
ArrayAccess for argument setter.

File

vendor/symfony/event-dispatcher/GenericEvent.php, line 85

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function setArgument($key, $value) {
  $this->arguments[$key] = $value;
  return $this;
}