| 1 | <?php |
||
| 14 | class Output |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private static $interfaces = [ |
||
| 20 | Console::class => [ |
||
| 21 | 'cli', |
||
| 22 | 'cli-server' |
||
| 23 | ], |
||
| 24 | Html::class => [ |
||
| 25 | 'aolserver', |
||
| 26 | 'apache', |
||
| 27 | 'apache2filter', |
||
| 28 | 'apache2handler', |
||
| 29 | 'caudium', |
||
| 30 | 'cgi-fcgi', |
||
| 31 | 'continuity', |
||
| 32 | 'embed', |
||
| 33 | 'fpm-fcgi', |
||
| 34 | 'isapi', |
||
| 35 | 'litespeed', |
||
| 36 | 'milter', |
||
| 37 | 'nsapi', |
||
| 38 | 'phttpd', |
||
| 39 | 'pi3web', |
||
| 40 | 'roxen', |
||
| 41 | 'thttpd', |
||
| 42 | 'tux', |
||
| 43 | 'webjames' |
||
| 44 | ] |
||
| 45 | ]; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Output constructor. |
||
| 49 | */ |
||
| 50 | public function __construct() {} |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param Benchmark $benchmark |
||
| 54 | * @param null|string $interface |
||
| 55 | * @throws \Exception |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 3 | public static function output(Benchmark $benchmark, $interface = null) |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param $sapi |
||
| 69 | * @return HTMLOutputInterface |
||
| 70 | */ |
||
| 71 | 3 | private static function outputClass($sapi) |
|
| 79 | |||
| 80 | } |
||
| 81 |