/**
 * Setter for the ignore argument
 *
 * @param   mixed  $value  The value to set
 *
 * @return  mixed
 *
 * @throws  BadMethodCallException  if the argument is not of the expected type
 */
protected function setIgnore($value)
{
    if (!empty($value) && !\is_array($value)) {
        throw new BadMethodCallException("Argument 'ignore' of event {$this->name} must be empty or array");
    }
    return $value;
}