/**
* Setter for the row argument
*
* @param array|null $value The value to set
*
* @return array|null
*
* @throws BadMethodCallException if the argument is not of the expected type
*/
protected function setRow($value)
{
if (!\is_null($value) && !\is_array($value)) {
throw new BadMethodCallException("Argument 'row' of event {$this->name} is not of the expected type");
}
return $value;
}