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