shieldfy/shieldfy-php-client

View on GitHub
src/Exceptions/Exceptioner.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace Shieldfy\Exceptions;

trait Exceptioner
{
    /* throw new exception */
    public function throwException($exception)
    {
        if ($this->config && $this->config['debug'] === true) {
            throw $exception;
        }
    }
}