mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2025-01-19 19:27:25 +08:00
38 lines
589 B
PHP
38 lines
589 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|