<?php

namespace interfaces;

interface minio_pdfs_i
{
    /**
     * Check if a PDF file exists in the Minio bucket
     * @param int $pdf_id
     * @return bool
     */
    public function pdf_exists(int $pdf_id): bool;

    /**
     * Upload a PDF file to the Minio bucket
     * @param string $pdf_id (e.g. 123)
     * @param string $file_path (e.g. /tmp/test.pdf)
     * @return string
     */
    public function upload(string $pdf_id, string $file_path): string;

    /**
     * Get the pdf key name for a given pdf id (E.g. pdf_123.pdf)
     * @param string $id (e.g. 67d4043850e78 )
     * @return string
     */
    public function get_pdf_key_name(string $id): string;
}