src/abstract-plugin.php
private function get_file_name_from_class( $class ) {
		if ( 'classmap' === static::$autoload_type ) {
			$filtered_class_name = explode( '\\', $class );
			$class_filename      = end( $filtered_class_name );
			$class_filename      = str_replace( '_', '-', $class_filename );

			return static::$filename_prefix . $class_filename . '.php';
		} else {

			return $this->psr4_get_file_name_from_class( $class );
		}
	}
private function get_file_name_from_class( $class ) {
		if ( 'classmap' === static::$autoload_type ) {
			$filtered_class_name = explode( '\\', $class );
			$class_filename      = end( $filtered_class_name );
			$class_filename      = str_replace( '_', '-', $class_filename );

			return static::$filename_prefix . $class_filename . '.php';
		} else {

			return $this->psr4_get_file_name_from_class( $class );
		}
	}
private function get_file_name_from_class ( $ class ) { if ( 'classmap' === static :: $ autoload_type ) { $ filtered_class_name = explode ( '\\' , $ class ) ; $ class_filename = end ( $ filtered_class_name ) ; $ class_filename = str_replace ( '_' , '-' , $ class_filename ) ; return static :: $ filename_prefix . $ class_filename . '.php' ; } else { return $ this -> psr4_get_file_name_from_class ( $ class ) ; } }
Take a class name and turn it into a file name.

@param  string $class Raw class name.

@return string
Take a class name and turn it into a file name .