You are here

class JSErrorItem in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php \Zumba\GastonJS\Exception\JSErrorItem

Class JSErrorItem @package Zumba\GastonJS\Exception

Hierarchy

Expanded class hierarchy of JSErrorItem

File

vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php, line 9

Namespace

Zumba\GastonJS\Exception
View source
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);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
JSErrorItem::$message protected property @var mixed
JSErrorItem::$stack protected property @var mixed
JSErrorItem::__construct public function
JSErrorItem::__toString public function String representation of the class