Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / system / src / PhpStorage / MockPhpStorage.php
1 <?php
2
3 namespace Drupal\system\PhpStorage;
4
5 /**
6  * Mock PHP storage class used for testing.
7  */
8 class MockPhpStorage {
9
10   /**
11    * The storage configuration.
12    *
13    * @var array
14    */
15   protected $configuration;
16
17   /**
18    * Constructs a MockPhpStorage object.
19    *
20    * @param array $configuration
21    */
22   public function __construct(array $configuration) {
23     $this->configuration = $configuration;
24   }
25
26   /**
27    * Gets the configuration data.
28    */
29   public function getConfiguration() {
30     return $this->configuration;
31   }
32
33   /**
34    * Gets a single configuration key.
35    */
36   public function getConfigurationValue($key) {
37     return isset($this->configuration[$key]) ? $this->configuration[$key] : NULL;
38   }
39
40 }