Skip to content

Commit

Permalink
👍 update implement interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Feb 2, 2024
1 parent fb610bb commit dd7bac5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/Interfaces/BotInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/Structures/NotificationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,7 +14,7 @@
use GuzzleHttp\Client;
use Telegram;

class Notifier implements AppInterface, NotificationInterface, EventInterface
class Notifier implements NotificationInterface, EventInterface
{
use App;
use Notification;
Expand Down

0 comments on commit dd7bac5

Please sign in to comment.