yiicod/yii2-mailqueue

View on GitHub
models/MailRepositoryInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace yiicod\mailqueue\models;

//$to, $subject, $body, $priority = 0, $from = '', array $attaches = [],
interface MailRepositoryInterface
{
    /**
     * Get data for setAttributes
     *
     * @return array
     */
    public function getData(): array;

    /**
     * Push to storage mail
     *
     * @return bool
     */
    public function push(): bool;
}