. */ namespace Poniverse\Ponyfm\Contracts; use Illuminate\Database\Eloquent\Relations\HasMany; /** * This interface is used for type safety when referring to entities that * are capable of accepting comments. * * @package Poniverse\Ponyfm\Contracts */ interface Commentable extends GeneratesNotifications { /** * This method returns an Eloquent relation to the entity's comments. * * @return HasMany */ public function comments():HasMany; }