![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/demo.cartinsight.co/vendor/spatie/ray/src/Origin/ |
<?php namespace Spatie\Ray\Origin; class Origin { /** @var string|null */ public $file; /** @var string|null */ public $lineNumber; /** @var string|null */ public $hostname; /** * @param string|null $file * @param int|null $lineNumber * @param string|null $hostname */ public function __construct($file, $lineNumber, $hostname = null) { $this->file = $file; $this->lineNumber = $lineNumber; $this->hostname = $hostname ?? Hostname::get(); } public function toArray(): array { return [ 'file' => $this->file, 'line_number' => $this->lineNumber, 'hostname' => $this->hostname, ]; } public function fingerPrint(): string { return md5(print_r($this->toArray(), true)); } }