for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xervice\ExceptionHandler\Business\Model\Register;
class ExceptionRegistrar implements ExceptionRegistrarInterface
{
/**
* @var \Xervice\ExceptionHandler\Business\Model\Register\RegisterCollection
*/
private $register;
* @var bool
private $isDebug;
* ExceptionRegistrar constructor.
*
* @param \Xervice\ExceptionHandler\Business\Model\Register\RegisterCollection $register
* @param bool $isDebug
public function __construct(RegisterCollection $register, bool $isDebug)
$this->register = $register;
$this->isDebug = $isDebug;
}
public function register(): void
foreach ($this->register as $register) {
$register->register($this->isDebug);