| 1 | <?php |
||
| 16 | class DuplicateException extends AbstractException |
||
| 17 | { |
||
| 18 | //<editor-fold desc="Fields"> |
||
| 19 | /** @var string */ |
||
| 20 | private $duplicateValue; |
||
| 21 | /** @var string */ |
||
| 22 | private $duplicateName; |
||
| 23 | /** @var string */ |
||
| 24 | private $arrayName; |
||
| 25 | //</editor-fold desc="Fields"> |
||
| 26 | |||
| 27 | //<editor-fold desc="Constructor"> |
||
| 28 | /** |
||
| 29 | * DuplicateException constructor. |
||
| 30 | * @param mixed $duplicateValue |
||
| 31 | * @param string $duplicateName |
||
| 32 | * @param string $arrayName |
||
| 33 | */ |
||
| 34 | public function __construct($duplicateValue, string $duplicateName, string $arrayName) |
||
| 43 | //</editor-fold desc="Constructor"> |
||
| 44 | |||
| 45 | //<editor-fold desc="Public Methods"> |
||
| 46 | /** |
||
| 47 | * Gets a json representation of the exception |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function getJsonMessage() |
||
| 58 | //</editor-fold desc="Public Methods"> |
||
| 59 | } |