diff options
Diffstat (limited to 'vendor/vlucas/phpdotenv/src/Store/StringStore.php')
| -rw-r--r-- | vendor/vlucas/phpdotenv/src/Store/StringStore.php | 37 |
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; + } +} |
