summaryrefslogtreecommitdiff
path: root/vendor/vlucas/phpdotenv/src/Store/StringStore.php
diff options
context:
space:
mode:
authorPeter Nguyen <peteralistairnguyen@gmail.com>2025-02-05 00:44:12 -0600
committerPeter Nguyen <peteralistairnguyen@gmail.com>2025-02-05 00:44:12 -0600
commit110dc2831488937c1afb70c11657a341912fc8cd (patch)
tree16b35df40e150d68344337b17c800b04b1435355 /vendor/vlucas/phpdotenv/src/Store/StringStore.php
Initial commit 2/25/2025
Diffstat (limited to 'vendor/vlucas/phpdotenv/src/Store/StringStore.php')
-rw-r--r--vendor/vlucas/phpdotenv/src/Store/StringStore.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/vlucas/phpdotenv/src/Store/StringStore.php b/vendor/vlucas/phpdotenv/src/Store/StringStore.php
new file mode 100644
index 0000000..3f862a7
--- /dev/null
+++ b/vendor/vlucas/phpdotenv/src/Store/StringStore.php
@@ -0,0 +1,37 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Dotenv\Store;
+
+final class StringStore implements StoreInterface
+{
+ /**
+ * The file content.
+ *
+ * @var string
+ */
+ private $content;
+
+ /**
+ * Create a new string store instance.
+ *
+ * @param string $content
+ *
+ * @return void
+ */
+ public function __construct(string $content)
+ {
+ $this->content = $content;
+ }
+
+ /**
+ * Read the content of the environment file(s).
+ *
+ * @return string
+ */
+ public function read()
+ {
+ return $this->content;
+ }
+}