PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 3.2.3
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v3.2.3
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
wp-optimize / vendor / mrclay / minify / lib / Minify / SourceInterface.php

SourceInterface.php in WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 3.2.3, at vendor/mrclay/minify/lib/Minify/SourceInterface.php

83 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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