Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace Dotenv\Store;
6
 
7
final class StringStore implements StoreInterface
8
{
9
    /**
10
     * The file content.
11
     *
12
     * @var string
13
     */
14
    private $content;
15
 
16
    /**
17
     * Create a new string store instance.
18
     *
19
     * @param string $content
20
     *
21
     * @return void
22
     */
23
    public function __construct(string $content)
24
    {
25
        $this->content = $content;
26
    }
27
 
28
    /**
29
     * Read the content of the environment file(s).
30
     *
31
     * @return string
32
     */
33
    public function read()
34
    {
35
        return $this->content;
36
    }
37
}