. */ namespace Poniverse\Ponyfm\Contracts; use Illuminate\Database\Eloquent\Relations\MorphMany; use Poniverse\Ponyfm\Models\User; /** * This interface is used for type safety when referring to entities that can be * the "target resource" of a notification (ie. what the notification is about). * * @package Poniverse\Ponyfm\Contracts */ interface GeneratesNotifications { /** * Returns a human-friendly string (lowercase & singular) representing this * type of resource. * * @return string */ public function getResourceType():string; public function activities():MorphMany; }