summaryrefslogtreecommitdiffstats
path: root/admin/survey/minify/lib/Minify/SourceInterface.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
commit19985dbb8c0aa66dc4bf7905abc1148de909097d (patch)
tree2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /admin/survey/minify/lib/Minify/SourceInterface.php
download1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip
Diffstat (limited to 'admin/survey/minify/lib/Minify/SourceInterface.php')
-rw-r--r--admin/survey/minify/lib/Minify/SourceInterface.php82
1 files changed, 82 insertions, 0 deletions
diff --git a/admin/survey/minify/lib/Minify/SourceInterface.php b/admin/survey/minify/lib/Minify/SourceInterface.php
new file mode 100644
index 0000000..ef281b9
--- /dev/null
+++ b/admin/survey/minify/lib/Minify/SourceInterface.php
@@ -0,0 +1,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();
+}