From 678f2fba6728e90356718dd759c05785f9efed61 Mon Sep 17 00:00:00 2001 From: Doug Wilbourne Date: Mon, 5 Aug 2024 10:06:41 -0400 Subject: [PATCH] updated MimeTypesInterface.php, added MimeTypeInterface and MimeTypesSrcInterface --- src/http/mimetype/MimeTypeInterface.php | 29 +++++++++++++++++++++ src/http/mimetype/MimeTypesSrcInterface.php | 22 ++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 src/http/mimetype/MimeTypeInterface.php create mode 100644 src/http/mimetype/MimeTypesSrcInterface.php diff --git a/src/http/mimetype/MimeTypeInterface.php b/src/http/mimetype/MimeTypeInterface.php new file mode 100644 index 0000000..d8576a9 --- /dev/null +++ b/src/http/mimetype/MimeTypeInterface.php @@ -0,0 +1,29 @@ + + * an array of the file extensions associated with this mime type + */ + public function getExtensions(): array; +} diff --git a/src/http/mimetype/MimeTypesSrcInterface.php b/src/http/mimetype/MimeTypesSrcInterface.php new file mode 100644 index 0000000..c592e01 --- /dev/null +++ b/src/http/mimetype/MimeTypesSrcInterface.php @@ -0,0 +1,22 @@ + + * the key in the array is the name of the mime type + */ + public function getMimeTypes(): array; +}