| 1 | <?php |
||
| 13 | class BackendOperationFailedException extends CacheException |
||
| 14 | { |
||
| 15 | const CODE = 1004; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Cache |
||
| 19 | */ |
||
| 20 | private $cache; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | private $operation; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * InvalidCacheOperationException constructor. |
||
| 29 | * |
||
| 30 | * @param Cache $cache |
||
| 31 | * @param string $operation |
||
| 32 | * @param Exception|null $previous |
||
| 33 | */ |
||
| 34 | 1 | public function __construct(Cache $cache, $operation, Exception $previous = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | 1 | public function getCache() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function getOperation() |
|
| 56 | } |
||
| 57 |