-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated MimeTypesInterface.php, added MimeTypeInterface and MimeTypes…
…SrcInterface
- Loading branch information
1 parent
054459f
commit 678f2fb
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/** | ||
* @author: Doug Wilbourne (dougwilbourne@gmail.com) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace pvc\interfaces\http\mimetype; | ||
|
||
/** | ||
* Class MimeTypeInterface | ||
*/ | ||
interface MimeTypeInterface | ||
{ | ||
/** | ||
* getMimeType | ||
* @return string | ||
* full name of the mime type, e.g. 'application/javascript' | ||
*/ | ||
public function getMimeType(): string; | ||
|
||
/** | ||
* getExtensions | ||
* @return array<string> | ||
* an array of the file extensions associated with this mime type | ||
*/ | ||
public function getExtensions(): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/** | ||
* @author: Doug Wilbourne (dougwilbourne@gmail.com) | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace pvc\interfaces\http\mimetype; | ||
|
||
/** | ||
* Class MimeTypesSrcInterface | ||
*/ | ||
interface MimeTypesSrcInterface | ||
{ | ||
/** | ||
* getMimeTypes | ||
* @return array<string, MimeTypeInterface> | ||
* the key in the array is the name of the mime type | ||
*/ | ||
public function getMimeTypes(): array; | ||
} |