yiicod/yii2-mailqueue

View on GitHub
components/MailHandlerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace yiicod\mailqueue\components;

use yiicod\mailqueue\models\MailRepositoryInterface;

interface MailHandlerInterface
{
    /**
     * Find mails
     *
     * @return mixed
     */
    public function findAll();

    /**
     * @param MailRepositoryInterface $item
     *
     * @return bool
     */
    public function send(MailRepositoryInterface $item): bool;

    /**
     * @param array $ids
     *
     * @return mixed
     */
    public function success(array $ids);

    /**
     * @param array $ids
     *
     * @return mixed
     */
    public function failed(array $ids);
}