diff --git a/src/Bot.php b/src/Bot.php index 1430503..cfd5f1b 100644 --- a/src/Bot.php +++ b/src/Bot.php @@ -5,9 +5,6 @@ use CSlant\TelegramGitNotifier\Constants\EventConstant; use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException; use CSlant\TelegramGitNotifier\Interfaces\BotInterface; -use CSlant\TelegramGitNotifier\Interfaces\EventInterface; -use CSlant\TelegramGitNotifier\Interfaces\SettingInterface; -use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface; use CSlant\TelegramGitNotifier\Models\Event; use CSlant\TelegramGitNotifier\Models\Setting; use CSlant\TelegramGitNotifier\Structures\App; @@ -17,7 +14,7 @@ use CSlant\TelegramGitNotifier\Trait\EventTrait; use Telegram; -class Bot implements AppInterface, BotInterface, EventInterface, SettingInterface +class Bot implements BotInterface { use App; use TelegramBot; diff --git a/src/Interfaces/BotInterface.php b/src/Interfaces/BotInterface.php index 165d703..a65e163 100644 --- a/src/Interfaces/BotInterface.php +++ b/src/Interfaces/BotInterface.php @@ -4,8 +4,9 @@ use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException; use CSlant\TelegramGitNotifier\Exceptions\MessageIsEmptyException; +use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface; -interface BotInterface +interface BotInterface extends AppInterface, EventInterface, SettingInterface { /** * Set the menu button for a telegram diff --git a/src/Interfaces/Structures/NotificationInterface.php b/src/Interfaces/Structures/NotificationInterface.php index 56147b5..a68457b 100644 --- a/src/Interfaces/Structures/NotificationInterface.php +++ b/src/Interfaces/Structures/NotificationInterface.php @@ -7,7 +7,7 @@ use CSlant\TelegramGitNotifier\Exceptions\SendNotificationException; use Symfony\Component\HttpFoundation\Request; -interface NotificationInterface +interface NotificationInterface extends AppInterface { /** * Notify access denied to other chat ids diff --git a/src/Notifier.php b/src/Notifier.php index d557078..62fbd08 100644 --- a/src/Notifier.php +++ b/src/Notifier.php @@ -6,7 +6,6 @@ use CSlant\TelegramGitNotifier\Constants\NotificationConstant; use CSlant\TelegramGitNotifier\Exceptions\ConfigFileException; use CSlant\TelegramGitNotifier\Interfaces\EventInterface; -use CSlant\TelegramGitNotifier\Interfaces\Structures\AppInterface; use CSlant\TelegramGitNotifier\Interfaces\Structures\NotificationInterface; use CSlant\TelegramGitNotifier\Models\Event; use CSlant\TelegramGitNotifier\Structures\App; @@ -15,7 +14,7 @@ use GuzzleHttp\Client; use Telegram; -class Notifier implements AppInterface, NotificationInterface, EventInterface +class Notifier implements NotificationInterface, EventInterface { use App; use Notification;