/**
 * Setter for the userId argument
 *
 * @param   int  $value  The value to set
 *
 * @return  integer
 *
 * @throws  BadMethodCallException  if the argument is not of the expected type
 */
protected function setUserId($value)
{
    if (!is_numeric($value)) {
        throw new BadMethodCallException("Argument 'userId' of event {$this->name} must be an integer");
    }
    return (int) $value;
}