Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
| ObjectIsEmpty | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| createForList | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| createForHashmap | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Exceptions; |
| 3 | |
| 4 | final class ObjectIsEmpty extends ApieException |
| 5 | { |
| 6 | private function __construct(string $objectName) |
| 7 | { |
| 8 | parent::__construct($objectName . ' is empty!'); |
| 9 | } |
| 10 | |
| 11 | public static function createForList(): self |
| 12 | { |
| 13 | return new self('ItemList'); |
| 14 | } |
| 15 | |
| 16 | public static function createForHashmap(): self |
| 17 | { |
| 18 | return new self('ItemHashmap'); |
| 19 | } |
| 20 | } |