This repository has been archived on 2025-09-29. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php

31 lines
551 B
PHP

<?php
namespace Zumba\GastonJS\Exception;
/**
* Class JSErrorItem
* @package Zumba\GastonJS\Exception
*/
class JSErrorItem {
/** @var mixed */
protected $message;
/** @var mixed */
protected $stack;
/**
* @param $message
* @param $stack
*/
public function __construct($message, $stack) {
$this->message = $message;
$this->stack = $stack;
}
/**
* String representation of the class
* @return string
*/
public function __toString() {
return sprintf("%s\n%s", $this->message, $this->stack);
}
}