Back to AbstractImmutableEvent class

Method offsetUnset

public void
offsetUnset
(mixed $name)
Remove an event argument.
Parameters
  • string $name The argument name.
Returns
  • void
Since
  • 4.0.0
-
  • \BadMethodCallException

Method offsetUnset - Source code

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