Mercurial > hg > isophonics-drupal-site
view vendor/jcalderonzumba/gastonjs/src/Exception/JSErrorItem.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?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); } }