Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Cache / Context / ContextCacheKeys.php
1 <?php
2
3 namespace Drupal\Core\Cache\Context;
4
5 use Drupal\Core\Cache\CacheableMetadata;
6
7 /**
8  * A value object to store generated cache keys with its cacheability metadata.
9  */
10 class ContextCacheKeys extends CacheableMetadata {
11
12   /**
13    * The generated cache keys.
14    *
15    * @var string[]
16    */
17   protected $keys;
18
19   /**
20    * Constructs a ContextCacheKeys object.
21    *
22    * @param string[] $keys
23    *   The cache context keys.
24    */
25   public function __construct(array $keys) {
26     $this->keys = $keys;
27   }
28
29   /**
30    * Gets the generated cache keys.
31    *
32    * @return string[]
33    *   The cache keys.
34    */
35   public function getKeys() {
36     return $this->keys;
37   }
38
39 }