madbob/GASdottoNG

View on GitHub
code/app/Exceptions/IllegalArgumentException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Exceptions;

class IllegalArgumentException extends \Exception
{
    private $argument;

    public function __construct($message, $argument = '')
    {
        parent::__construct($message);
        $this->argument = $argument;
    }

    public function status()
    {
        return 500;
    }

    public function getArgument()
    {
        return $this->argument;
    }
}