PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
AttachableLogger.php
1<?php
2
3/*
4 * PocketMine Standard PHP Library
5 * Copyright (C) 2014-2018 PocketMine Team <https://github.com/PocketMine/PocketMine-SPL>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16*/
17
21interface AttachableLogger extends \Logger{
22
28 public function addAttachment(\Closure $attachment);
29
35 public function removeAttachment(\Closure $attachment);
36
40 public function removeAttachments();
41
46 public function getAttachments();
47}
removeAttachment(\Closure $attachment)
addAttachment(\Closure $attachment)