for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BOTK\Exception;
class FactsValidatorWarning extends Warning
{
protected $data;
// Redefine the exception adding an extra paramether
public function __construct($message, \BOTK\ModelInterface $data, $code = 0, Exception $previous = null) {
BOTK\Exception\Exception
Exception
\
$this->data = $data;
// make sure everything is assigned properly
parent::__construct($message, $code, $previous);
}
public function getFacts() {
return $this->data;