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