for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* {@see https://github.com/zee/ Zee Project (c)}
*/
declare(strict_types=1);
namespace Zee\Exceptions;
trait ThrowableContextTrait
{
private $context = [];
public function __construct(string $message = '', array $context = [], int $code = 0, \Throwable $previous = null)
parent::__construct($message, $code, $previous);
$this->context = $context;
}
public function getContext(): array
return $this->context;