`Benchmark`: Define parameter `$what` as nullable
This commit is contained in:
parent
dd8875f99f
commit
11c7f913c8
|
@ -77,7 +77,7 @@ class Benchmark
|
||||||
* otherwise. Use Benchmark::TIME and Benchmark::MEMORY to choose whether
|
* otherwise. Use Benchmark::TIME and Benchmark::MEMORY to choose whether
|
||||||
* you prefer to show either time or memory or both in your output
|
* you prefer to show either time or memory or both in your output
|
||||||
*
|
*
|
||||||
* @param int Whether to get time and/or memory summary
|
* @param ?int $what Whether to get time and/or memory summary
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function dump($what = null)
|
public static function dump($what = null)
|
||||||
|
@ -95,7 +95,7 @@ class Benchmark
|
||||||
* Use Benchmark::TIME and Icinga::MEMORY to choose whether you prefer to
|
* Use Benchmark::TIME and Icinga::MEMORY to choose whether you prefer to
|
||||||
* show either time or memory or both in your output
|
* show either time or memory or both in your output
|
||||||
*
|
*
|
||||||
* @param int Whether to get time and/or memory summary
|
* @param ?int $what Whether to get time and/or memory summary
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function renderToText($what = null)
|
public static function renderToText($what = null)
|
||||||
|
@ -131,7 +131,8 @@ class Benchmark
|
||||||
* Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer
|
* Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer
|
||||||
* to show either time or memory or both in your output
|
* to show either time or memory or both in your output
|
||||||
*
|
*
|
||||||
* @param int Whether to get time and/or memory summary
|
* @param ?int $what Whether to get time and/or memory summary
|
||||||
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function renderToHtml($what = null)
|
public static function renderToHtml($what = null)
|
||||||
|
@ -176,8 +177,9 @@ class Benchmark
|
||||||
* Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer
|
* Use Benchmark::TIME and Benchmark::MEMORY to choose whether you prefer
|
||||||
* to have either time or memory or both in your output
|
* to have either time or memory or both in your output
|
||||||
*
|
*
|
||||||
* @param int Whether to get time and/or memory summary
|
* @param ?int $what Whether to get time and/or memory summary
|
||||||
* @return array
|
*
|
||||||
|
* @return object
|
||||||
*/
|
*/
|
||||||
protected static function prepareDataForRendering($what = null)
|
protected static function prepareDataForRendering($what = null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue