Skip to content

Commit

Permalink
updated MimeTypesInterface.php, added MimeTypeInterface and MimeTypes…
Browse files Browse the repository at this point in the history
…SrcInterface
  • Loading branch information
dwilbourne committed Aug 5, 2024
1 parent 054459f commit 678f2fb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/http/mimetype/MimeTypeInterface.php
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;
}
22 changes: 22 additions & 0 deletions src/http/mimetype/MimeTypesSrcInterface.php
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;
}

0 comments on commit 678f2fb

Please sign in to comment.