for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* @author Serkin Akexander <[email protected]>
*/
namespace Volan\Traits;
trait ErrorHandlerTrait
{
/**
* @var array
private $error;
* @return array
public function getErrorInfo()
return $this->error;
}
abstract public function getCurrentNode();
* @param string $message
* @param int $code
private function setError($message, $code)
$this->error = [
'code' => $code,
'error' => $message,
'node' => $this->getCurrentNode()
];