21 lines
272 B
PHP
21 lines
272 B
PHP
|
<?php
|
||
|
|
||
|
namespace common\services\messagesDeliver;
|
||
|
|
||
|
use common\models\User;
|
||
|
|
||
|
interface ICanDeliverMessage
|
||
|
{
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
public function setRecipient(User $recipient): ICanDeliverMessage;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
public function deliverMessage(string $title, string $message): array;
|
||
|
}
|