. */ namespace App\Contracts; use App\Models\Comment; use App\Models\Playlist; use App\Models\Track; use App\Models\User; /** * Interface NotificationHandler. */ interface NotificationHandler { /** * @param Track $track * @return void */ public function publishedNewTrack(Track $track); /** * @param Playlist $playlist * @return void */ public function publishedNewPlaylist(Playlist $playlist); /** * @param User $userBeingFollowed * @param User $follower * @return void */ public function newFollower(User $userBeingFollowed, User $follower); /** * @param Comment $comment * @return void */ public function newComment(Comment $comment); /** * @param Favouritable $entityBeingFavourited * @param User $favouriter * @return void */ public function newFavourite(Favouritable $entityBeingFavourited, User $favouriter); }