<?php
declare(strict_types=1);

namespace App\Services\Security;

class LocalHashMusicFingerprintProvider implements MusicFingerprintProviderInterface
{
    public function fingerprint(string $absolutePath, array $meta = []): array
    {
        return [
            'provider' => 'local_hash',
            'hash' => is_file($absolutePath) ? (hash_file('sha256', $absolutePath) ?: '') : '',
            'duration' => $meta['duration'] ?? null,
            'todo' => 'Gercek fingerprint icin AcoustID, ACRCloud, AudD veya benzeri provider entegrasyonu eklenecek.',
        ];
    }
}
