original_string: public static function create( $eventName, $eventArgs = null ) {
  			
  			if ( !is_string( $eventName ) ) {
  				throw new \browserfs\Exception('Invalid argument $eventName: string expected!');
  			}
  			
  			if ( null !== $eventArgs && !is_array( $eventArgs ) ) {
  				throw new \browserfs\Exception('Invalid argument $eventArgs: any[] | null expected');
  			}
  
  			return new static( $eventName, null === $eventArgs ? [] : array_values( $eventArgs ) );
  		}
code: public static function create( $eventName, $eventArgs = null ) {
  			
  			if ( !is_string( $eventName ) ) {
  				throw new \browserfs\Exception('Invalid argument $eventName: string expected!');
  			}
  			
  			if ( null !== $eventArgs && !is_array( $eventArgs ) ) {
  				throw new \browserfs\Exception('Invalid argument $eventArgs: any[] | null expected');
  			}
  
  			return new static( $eventName, null === $eventArgs ? [] : array_values( $eventArgs ) );
  		}
code_tokens: public static function create ( $ eventName , $ eventArgs = null ) { if ( ! is_string ( $ eventName ) ) { throw new \ browserfs \ Exception ( 'Invalid argument $eventName: string expected!' ) ; } if ( null !== $ eventArgs && ! is_array ( $ eventArgs ) ) { throw new \ browserfs \ Exception ( 'Invalid argument $eventArgs: any[] | null expected' ) ; } return new static ( $ eventName , null === $ eventArgs ? [ ] : array_values ( $ eventArgs ) ) ; }
docstring: Creates a new event. Static constructor.
  @param eventName - string - the name of the event
  @param eventArgs - any[] | null - event arguments.
  @throws \browserfs\Exception - if arguments are invalid
  @return \browserfs\Event
docstring_tokens: Creates a new event . Static constructor .