for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LimeSoda\LiveGuard;
use LimeSoda\LiveGuard\Error;
/**
* Class ErrorCollection
* @package LimeSoda\LiveGuard
*/
class ErrorCollection
{
protected $_exceptions = array();
* @param \Exception $exception
public function addError( \Exception $exception )
$this->_exceptions[] = new Error($exception);
}
* @return array
public function getErrors()
return $this->_exceptions;
* @return int
public function countErrors()
return count($this->_exceptions);