/**
* Set the value of an event argument.
*
* @param string $name The argument name.
* @param mixed $value The argument value.
*
* @return void
*
* @since 4.0.0
* @throws BadMethodCallException
*/
public function offsetSet($name, $value)
{
throw new BadMethodCallException(sprintf('Cannot set the argument %s of the immutable event %s.', $name, $this->name));
}