| 1 | <?php |
||
| 17 | class TotoPlugin implements ChatDataListenerInterface, StatusAwarePluginInterface |
||
| 18 | { |
||
| 19 | /** @var Console */ |
||
| 20 | protected $console; |
||
| 21 | |||
| 22 | /** @var ManialinkFactory */ |
||
| 23 | protected $mlFactory; |
||
| 24 | |||
| 25 | /** @var Group */ |
||
| 26 | protected $playersGroup; |
||
| 27 | |||
| 28 | function __construct( |
||
| 38 | |||
| 39 | public function onPlayerChat(Player $player, $text) |
||
| 49 | |||
| 50 | |||
| 51 | /** |
||
| 52 | * Set the status of the plugin |
||
| 53 | * |
||
| 54 | * @param boolean $status |
||
| 55 | * |
||
| 56 | * @return null |
||
| 57 | */ |
||
| 58 | public function setStatus($status) |
||
| 66 | } |
||
| 67 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.