| 1 | <?php |
||
| 14 | class PlayerDb |
||
| 15 | { |
||
| 16 | /** @var PlayerPlugin */ |
||
| 17 | protected $playerPlugin; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Player constructor. |
||
| 21 | * |
||
| 22 | * @param PlayerPlugin $playerPlugin |
||
| 23 | */ |
||
| 24 | 1 | public function __construct(PlayerPlugin $playerPlugin) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Get stored player. Only currently connected players are stored. |
||
| 31 | * |
||
| 32 | * @param $playerLogin |
||
| 33 | * |
||
| 34 | * @return mixed|null |
||
| 35 | */ |
||
| 36 | 1 | public function get($playerLogin) |
|
| 40 | } |
||
| 41 |