protected function processFrame(Util\Frame $frame) { $function = $frame->getClass() ?: ''; $function .= $frame->getClass() && $frame->getFunction() ? ":" : ""; $function .= $frame->getFunction() ?: ''; $fileline = $frame->getFile() ?: '<#unknown>'; $fileline .= ':'; $fileline .= (int) $frame->getLine(); return [$function, $fileline]; }
/** * Compares Frame against one another * * @param Frame $frame * * @return boolean */ public function equals(Frame $frame) { if (!$this->getFile() || $this->getFile() === 'Unknown' || !$this->getLine()) { return false; } return $frame->getFile() === $this->getFile() && $frame->getLine() === $this->getLine(); }