summaryrefslogtreecommitdiffstats
path: root/admin/survey/minify/lib/Minify/SourceInterface.php
blob: ef281b9002bbf10c61459ba6dca8f03d8e9a3f54 (plain) (blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?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 = null);

    /**
     * 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|null
     */
    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();
}