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