for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* Copyright (c) 2016 Constantin Galbenu <[email protected]> *
******************************************************************************/
namespace Gica\Cqrs\Command\Exception;
class CommandValidationFailed extends \Exception
{
/**
* @var array
*/
private $errors;
public function __construct(array $errors = [])
$this->errors = $errors;
parent::__construct(implode("\n", $this->errors));
}
* @return array
public function getErrors(): array
return $this->errors;