| 1 | <?php |
||
| 11 | class MessageReporterFactory { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var MessageReporterFactory |
||
| 15 | */ |
||
| 16 | private static $instance = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @since 1.0 |
||
| 20 | * @return MessageReporterFactory |
||
| 21 | */ |
||
| 22 | 2 | public static function getInstance() { |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @since 1.0 |
||
| 33 | */ |
||
| 34 | 1 | public static function clear() { |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @since 1.0 |
||
| 40 | * @return NullMessageReporter |
||
| 41 | */ |
||
| 42 | 1 | public function newNullMessageReporter() { |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @since 1.0 |
||
| 48 | * @return ObservableMessageReporter |
||
| 49 | */ |
||
| 50 | 1 | public function newObservableMessageReporter() { |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @since 1.2 |
||
| 56 | * @return SpyMessageReporter |
||
| 57 | */ |
||
| 58 | 1 | public function newSpyMessageReporter() { |
|
| 61 | |||
| 62 | } |
||
| 63 |