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

17 lines
361 B
PHP
Raw Normal View History

<?php
namespace App\Support\Publishing;
use App\Models\Post;
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): PublishResult;
}