首页 > 解决方案 > 记录功能执行的所有细节?

问题描述

例如:有一个如下所示的函数:

public function something(string $fnStrArgument, int $fnIntArgument) : void 
{

    $this->aFunction($fnStrArgument);
    $this->anotherFunction($fnIntArgument);

}

是否有标准反射方法可以让我学习“something()”在执行时使用了这些函数?

例如。

Format: 


$this->something function executed with =>

                 aFunction with argument(s) < $fnStrArgument value >
                 anotherFunction with argument(s) < $fnIntArgument value >

我的请求听起来像是回溯,但我想知道如何正确执行此操作?我只想了解如何记录上面给出的方法执行。不管怎么说,还是要谢谢你。

标签: php

解决方案


推荐阅读