src/Events/EventEmitter.php
/**
	 * Emits an event on the specified channel with the provided arguments.
	 *
	 * @param string $channel The channel to emit on.
	 * @param mixed [$args...] Optional arguments to send to the callbacks.
	 */
Emits an event on the specified channel with the provided arguments.
@param string $channel The channel to emit on.
@param mixed [$args...] Optional arguments to send to the callbacks.
Emits an event on the specified channel with the provided arguments . @param string $channel The channel to emit on . @param mixed [ $args ... ] Optional arguments to send to the callbacks .
protected function emit() {
		$args = func_get_args();
		if (count($args) == 0) return;
		$channel = array_shift($args);
		$this->call($channel, $args);
	}
protected function emit ( ) { $ args = func_get_args ( ) ; if ( count ( $ args ) == 0 ) return ; $ channel = array_shift ( $ args ) ; $ this -> call ( $ channel , $ args ) ; }
Emits an event on the specified channel with the provided arguments.
Emits an event on the specified channel with the provided arguments .
// Get all arguments // Check argument count // Get channel // Execute bound callbacks