| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | class Extension implements ExtensionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The file extension. |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $extension; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The MIME types map. |
||
| 21 | * |
||
| 22 | * @var MimeMapInterface |
||
| 23 | */ |
||
| 24 | protected $map; |
||
| 25 | |||
| 26 | 16 | public function __construct(string $extension, string $map_class = null) |
|
| 30 | } |
||
| 31 | |||
| 32 | 8 | public function getDefaultType(): string |
|
| 33 | { |
||
| 34 | 8 | return $this->getTypes()[0]; |
|
| 35 | } |
||
| 36 | |||
| 37 | 16 | public function getTypes(): array |
|
| 44 | } |
||
| 45 | } |
||
| 46 |