mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 17:44:00 +02:00
Collapse "min" into project root and get unit tests working.
Fixes #472
This commit is contained in:
81
lib/Minify/SourceInterface.php
Normal file
81
lib/Minify/SourceInterface.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* Interface Minify_SourceInterface
|
||||
* @package Minify
|
||||
*/
|
||||
|
||||
/**
|
||||
* A content source to be minified by Minify.
|
||||
*
|
||||
* This allows per-source minification options and the mixing of files with
|
||||
* content from other sources.
|
||||
*
|
||||
* @package Minify
|
||||
*/
|
||||
interface Minify_SourceInterface {
|
||||
|
||||
/**
|
||||
* Get the minifier
|
||||
*
|
||||
* @return callable|null
|
||||
*/
|
||||
public function getMinifier();
|
||||
|
||||
/**
|
||||
* Set the minifier
|
||||
*
|
||||
* @param callable $minifier
|
||||
* @return void
|
||||
*/
|
||||
public function setMinifier($minifier);
|
||||
|
||||
/**
|
||||
* Get options for the minifier
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getMinifierOptions();
|
||||
|
||||
/**
|
||||
* Set options for the minifier
|
||||
*
|
||||
* @param array $options
|
||||
* @return void
|
||||
*/
|
||||
public function setMinifierOptions(array $options);
|
||||
|
||||
/**
|
||||
* Get the content type
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContentType();
|
||||
|
||||
/**
|
||||
* Get content
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContent();
|
||||
|
||||
/**
|
||||
* Get last modified timestamp
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getLastModified();
|
||||
|
||||
/**
|
||||
* Get id
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getId();
|
||||
|
||||
/**
|
||||
* Get the path of the file that this source is based on (may be null)
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFilePath();
|
||||
}
|
Reference in New Issue
Block a user