mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-26 12:58:51 -06:00
31 lines
686 B
PHP
31 lines
686 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services;
|
|
|
|
use App\Services\VaultFiles\Audio;
|
|
use App\Services\VaultFiles\Image;
|
|
use App\Services\VaultFiles\Note;
|
|
use App\Services\VaultFiles\Pdf;
|
|
use App\Services\VaultFiles\Video;
|
|
|
|
final class VaultFile
|
|
{
|
|
/**
|
|
* Get the extensions for the vault files.
|
|
*
|
|
* @return list<string>
|
|
*/
|
|
public static function extensions(bool $withDots = false): array
|
|
{
|
|
return [
|
|
...Audio::extensions($withDots),
|
|
...Image::extensions($withDots),
|
|
...Note::extensions($withDots),
|
|
...Pdf::extensions($withDots),
|
|
...Video::extensions($withDots),
|
|
];
|
|
}
|
|
}
|