1<?php 2 3namespace dokuwiki\plugin\dev\test; 4 5use splitbrain\phpcli\CLI; 6use splitbrain\phpcli\Options; 7 8/** 9 * Does nothing 10 */ 11class NullLogger extends CLI 12{ 13 /** @inheritdoc */ 14 public function __construct($autocatch = true) 15 { 16 parent::__construct(false); 17 } 18 19 /** @inheritdoc */ 20 protected function setup(Options $options) 21 { 22 } 23 24 /** @inheritdoc */ 25 protected function main(Options $options) 26 { 27 } 28 29 /** @inheritdoc */ 30 public function log($level, $message, array $context = array()) 31 { 32 return ''; 33 } 34 35} 36