1 | <?php |
||
5 | class Backtrace |
||
6 | { |
||
7 | /** @var array */ |
||
8 | protected $trace; |
||
9 | |||
10 | public function __construct(array $trace) |
||
14 | |||
15 | public function getArguments(): array |
||
19 | |||
20 | public function getFunctionName(): string |
||
24 | |||
25 | /** |
||
26 | * @return mixed |
||
27 | */ |
||
28 | public function getObject() |
||
29 | { |
||
30 | return $this->staticCall() ? $this->trace['class'] : $this->trace['object']; |
||
31 | } |
||
32 | |||
33 | public function getHash(): string |
||
41 | |||
42 | protected function staticCall() |
||
46 | } |
||
47 |