1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
- namespace Illuminate\Cache\Events;
-
- abstract class CacheEvent
- {
- /**
- * The key of the event.
- *
- * @var string
- */
- public $key;
-
- /**
- * The tags that were assigned to the key.
- *
- * @var array
- */
- public $tags;
-
- /**
- * Create a new event instance.
- *
- * @param string $key
- * @param array $tags
- * @return void
- */
- public function __construct($key, array $tags = [])
- {
- $this->key = $key;
- $this->tags = $tags;
- }
-
- /**
- * Set the tags for the cache event.
- *
- * @param array $tags
- * @return $this
- */
- public function setTags($tags)
- {
- $this->tags = $tags;
-
- return $this;
- }
- }
|