| 1 | <?php |
||
| 13 | class CacheEvent extends Event |
||
| 14 | { |
||
| 15 | const EVENT_SAVE = 'save'; |
||
| 16 | const EVENT_LOAD = 'load'; |
||
| 17 | const EVENT_SHOULDCACHE = 'shouldCache'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $cacheKey; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var MvcEvent |
||
| 26 | */ |
||
| 27 | protected $mvcEvent; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $tags = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getCacheKey() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $cacheKey |
||
| 44 | * @return CacheEvent |
||
| 45 | */ |
||
| 46 | public function setCacheKey($cacheKey) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return MvcEvent |
||
| 55 | */ |
||
| 56 | public function getMvcEvent() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @param MvcEvent $mvcEvent |
||
| 63 | * @return CacheEvent |
||
| 64 | */ |
||
| 65 | public function setMvcEvent($mvcEvent) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return array |
||
| 74 | */ |
||
| 75 | public function getTags() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @param array $tags |
||
| 82 | */ |
||
| 83 | public function setTags(array $tags) |
||
| 87 | } |
||
| 88 |