Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| DiscriminatorValueException | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\Core\Exceptions; |
| 3 | |
| 4 | /** |
| 5 | * Exception thrown when a discriminator requires a class, |
| 6 | * but can not find the proper discriminator value. |
| 7 | */ |
| 8 | final class DiscriminatorValueException extends ApieException |
| 9 | { |
| 10 | public function __construct(string $identifier) |
| 11 | { |
| 12 | parent::__construct( |
| 13 | sprintf('Discriminator not found: "' . $identifier . '"') |
| 14 | ); |
| 15 | } |
| 16 | } |