/**
* @param Enlight_Event_EventArgs|array|null $eventArgs
*
* @throws Enlight_Event_Exception
*
* @return Enlight_Event_EventArgs
*/
private function buildEventArgs($eventArgs = null
) { if (isset($eventArgs) && \
is_array($eventArgs)) { return new Enlight_Event_EventArgs($eventArgs);
} elseif (!
isset($eventArgs)) { return new Enlight_Event_EventArgs();
} elseif (!
$eventArgs instanceof Enlight_Event_EventArgs
) { throw new Enlight_Event_Exception('Parameter "eventArgs" must be an instance of "Enlight_Event_EventArgs"'
);
} return $eventArgs;
}}