<?php
/**
 * Interface for email notification classes.
 *
 * @package Donatico\Interfaces
 */

declare(strict_types=1);

namespace Donatico\Interfaces;

use Donatico\Models\Donation;

/**
 * Any class that sends a donation-related email must implement this interface.
 */
interface EmailInterface {

	/**
	 * Send the email for the given donation.
	 *
	 * @param Donation $donation The donation that triggered the notification.
	 * @return bool True on successful delivery, false on failure.
	 */
	public function send( Donation $donation ): bool;
}
