| 1 |
<?php |
| 2 |
/** |
| 3 |
* Interface Minify_SourceInterface |
| 4 |
* @package Minify |
| 5 |
*/ |
| 6 |
|
| 7 |
/** |
| 8 |
* A content source to be minified by Minify. |
| 9 |
* |
| 10 |
* This allows per-source minification options and the mixing of files with |
| 11 |
* content from other sources. |
| 12 |
* |
| 13 |
* @package Minify |
| 14 |
*/ |
| 15 |
interface Minify_SourceInterface |
| 16 |
{ |
| 17 |
|
| 18 |
/** |
| 19 |
* Get the minifier |
| 20 |
* |
| 21 |
* @return callable|null |
| 22 |
*/ |
| 23 |
public function getMinifier(); |
| 24 |
|
| 25 |
/** |
| 26 |
* Set the minifier |
| 27 |
* |
| 28 |
* @param callable $minifier |
| 29 |
* @return void |
| 30 |
*/ |
| 31 |
public function setMinifier($minifier = null); |
| 32 |
|
| 33 |
/** |
| 34 |
* Get options for the minifier |
| 35 |
* |
| 36 |
* @return array |
| 37 |
*/ |
| 38 |
public function getMinifierOptions(); |
| 39 |
|
| 40 |
/** |
| 41 |
* Set options for the minifier |
| 42 |
* |
| 43 |
* @param array $options |
| 44 |
* @return void |
| 45 |
*/ |
| 46 |
public function setMinifierOptions(array $options); |
| 47 |
|
| 48 |
/** |
| 49 |
* Get the content type |
| 50 |
* |
| 51 |
* @return string|null |
| 52 |
*/ |
| 53 |
public function getContentType(); |
| 54 |
|
| 55 |
/** |
| 56 |
* Get content |
| 57 |
* |
| 58 |
* @return string |
| 59 |
*/ |
| 60 |
public function getContent(); |
| 61 |
|
| 62 |
/** |
| 63 |
* Get last modified timestamp |
| 64 |
* |
| 65 |
* @return int |
| 66 |
*/ |
| 67 |
public function getLastModified(); |
| 68 |
|
| 69 |
/** |
| 70 |
* Get id |
| 71 |
* |
| 72 |
* @return string |
| 73 |
*/ |
| 74 |
public function getId(); |
| 75 |
|
| 76 |
/** |
| 77 |
* Get the path of the file that this source is based on (may be null) |
| 78 |
* |
| 79 |
* @return string|null |
| 80 |
*/ |
| 81 |
public function getFilePath(); |
| 82 |
} |
| 83 |
|