public static function listenTo(String $eventId, $callback)
	{
		if (!in_array(gettype($callback), ['array', 'object', 'closure'])) {
			return false;
		}

		EventManager::$listeners[$eventId][] = $callback;
	}
public static function listenTo(String $eventId, $callback)
	{
		if (!in_array(gettype($callback), ['array', 'object', 'closure'])) {
			return false;
		}

		EventManager::$listeners[$eventId][] = $callback;
	}
public static function listenTo ( String $ eventId , $ callback ) { if ( ! in_array ( gettype ( $ callback ) , [ 'array' , 'object' , 'closure' ] ) ) { return false ; } EventManager :: $ listeners [ $ eventId ] [ ] = $ callback ; }
Creates a new listener. Two parameters are required. The eventId that will be used
to track the current event and the callback which can be either an array or a closure.

@param 	$eventId <String>
@param 	$callback <Mixed>
@access 	public
@static
@return 	<void>
Creates a new listener . Two parameters are required . The eventId that will be used to track the current event and the callback which can be either an array or a closure .