BIMFactory.php 387 B

123456789101112131415161718
  1. <?php
  2. namespace App\Services\File\BIM;
  3. use App\Services\File\BIM\BlackHole\BlackHole;
  4. use App\Services\File\BIM\Contacts\BIMContact;
  5. class BIMFactory
  6. {
  7. public static function make(string $driver = null): BIMContact
  8. {
  9. $driver = $driver ? $driver : config("bim.default");
  10. return match ($driver) {
  11. "black_hole" => new BlackHole(),
  12. };
  13. }
  14. }