| 1 | <?php |
||
| 12 | class ChatDataProvider extends AbstractDataProvider |
||
| 13 | { |
||
| 14 | /** @var PlayerStorage */ |
||
| 15 | protected $playerStorage; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * ChatDataProvider constructor. |
||
| 19 | * |
||
| 20 | * @param PlayerStorage $playerStorage |
||
| 21 | */ |
||
| 22 | public function __construct(PlayerStorage $playerStorage) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Called when a player chats on the server. |
||
| 29 | * |
||
| 30 | * @param int $playerUid |
||
| 31 | * @param string $login |
||
| 32 | * @param string $text |
||
| 33 | * @param bool $isRegisteredCmd |
||
| 34 | */ |
||
| 35 | public function onPlayerChat($playerUid, $login, $text, $isRegisteredCmd = false) |
||
| 41 | } |
||
| 42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.