Files
muninn/app/Support/Publishing/Publisher.php
T

18 lines
429 B
PHP
Raw Normal View History

<?php
namespace App\Support\Publishing;
use App\Models\Post;
use App\Models\SocialAccount;
interface Publisher
{
/**
* Whether this publisher handles the given post's type. Does not imply
* the post is actually publishable (see publish()'s rejected results).
*/
public function supports(Post $post): bool;
public function publish(Post $post, ?SocialAccount $socialAccount = null): PublishResult;
}