| Total Complexity | 6 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class IrcMessage |
||
| 9 | { |
||
| 10 | /** @var string */ |
||
| 11 | private $rawMessage; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | protected $command; |
||
| 15 | |||
| 16 | /** @var string */ |
||
| 17 | protected $commandsuffix; |
||
| 18 | |||
| 19 | /** @var bool */ |
||
| 20 | protected $handled; |
||
| 21 | |||
| 22 | /** @var string */ |
||
| 23 | protected $payload; |
||
| 24 | |||
| 25 | /** @var string */ |
||
| 26 | protected $source; |
||
| 27 | |||
| 28 | public function __construct(string $message) |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * This function is always called after the message is parsed. |
||
| 43 | * The handle will only be executed once unless forced. |
||
| 44 | * |
||
| 45 | * @param IrcClient $client A reference to the irc client object |
||
| 46 | * @param bool $force Force handling this message even if already handled. |
||
| 47 | */ |
||
| 48 | public function handle(IrcClient $client, bool $force = false): void |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the events that should be invoked for this message. |
||
| 57 | * |
||
| 58 | * @return Event[] |
||
| 59 | */ |
||
| 60 | public function getEvents(): array |
||
| 65 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.