| 1 | <?php namespace nyx\core\collections\exceptions; |
||
| 14 | class KeyNotExists extends collections\Exception |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var mixed The key that was not found. |
||
| 18 | */ |
||
| 19 | private $key; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | * |
||
| 24 | * @param mixed $key The key that was not found. |
||
| 25 | */ |
||
| 26 | public function __construct(collections\interfaces\Collection $collection, $key, string $message = null, $code = 0, $previous = null) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the key that was not found. |
||
| 35 | * |
||
| 36 | * @return mixed |
||
| 37 | */ |
||
| 38 | public function getKey() |
||
| 42 | } |
||
| 43 |