Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
5 / 5 |
EmptyClassNameException | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
5 / 5 |
__construct(Exception $previous = null) | |
100.00% |
1 / 1 |
1 | |
100.00% |
5 / 5 |
<?php | |
/* | |
* This file is part of the Cosmos package. | |
* | |
* Copyright © 2013 Erin Millard | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace Eloquent\Cosmos\Exception; | |
use Exception; | |
use LogicException; | |
final class EmptyClassNameException extends LogicException | |
{ | |
/** | |
* @param Exception|null $previous | |
*/ | |
public function __construct(Exception $previous = null) | |
{ | |
parent::__construct( | |
'Class names cannot be empty.', | |
0, | |
$previous | |
); | |
} | |
} |