| 1 | <?php |
||
| 11 | class MessageReporterFactory { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var MessageReporterFactory |
||
| 15 | */ |
||
| 16 | private static $instance = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @since 1.0 |
||
| 20 | * |
||
| 21 | * @return MessageReporterFactory |
||
| 22 | */ |
||
| 23 | 2 | public static function getInstance() { |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @since 1.0 |
||
| 34 | */ |
||
| 35 | 1 | public static function clear() { |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @since 1.0 |
||
| 41 | * |
||
| 42 | * @return NullMessageReporter |
||
| 43 | */ |
||
| 44 | 1 | public function newNullMessageReporter() { |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @since 1.0 |
||
| 50 | * |
||
| 51 | * @return ObservableMessageReporter |
||
| 52 | */ |
||
| 53 | 1 | public function newObservableMessageReporter() { |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @since 1.2 |
||
| 59 | * |
||
| 60 | * @return SpyMessageReporter |
||
| 61 | */ |
||
| 62 | 1 | public function newSpyMessageReporter() { |
|
| 65 | |||
| 66 | } |
||
| 67 |