summaryrefslogtreecommitdiff
path: root/includes/registration/Processor.php
blob: e930fd3e5144f16862af7a12f414fffc5c3e83bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

/**
 * Processors read associated arrays and register
 * whatever is required
 *
 * @since 1.25
 */
interface Processor {

	/**
	 * Main entry point, processes the information
	 * provided.
	 * Callers should call "callback" after calling
	 * this function.
	 *
	 * @param string $path Absolute path of JSON file
	 * @param array $info
	 * @return array "credits" information to store
	 */
	public function extractInfo( $path, array $info );

	/**
	 * @return array With 'globals', 'defines', 'callbacks', 'credits' keys.
	 */
	public function getExtractedInfo();
}