Skip to content

Commit

Permalink
added MimeTypesInterface.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilbourne committed Aug 5, 2024
1 parent a8fb3e4 commit 4725683
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/http/mimetype/MimeTypesInterface.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 MimeTypesInterface
*/
interface MimeTypesInterface
{
/**
* getMimeType
* @param string $fileExt
* @return string
*/
public function getMimeType(string $fileExt): string;

/**
* getExtensions
* @param string $mimeType
* @return array<string>
*/
public function getExtensions(string $mimeType): array;
}

0 comments on commit 4725683

Please sign in to comment.