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\Repository;
6
 
7
interface RepositoryInterface
8
{
9
    /**
10
     * Determine if the given environment variable is defined.
11
     *
12
     * @param string $name
13
     *
14
     * @return bool
15
     */
16
    public function has(string $name);
17
 
18
    /**
19
     * Get an environment variable.
20
     *
21
     * @param string $name
22
     *
23
     * @throws \InvalidArgumentException
24
     *
25
     * @return string|null
26
     */
27
    public function get(string $name);
28
 
29
    /**
30
     * Set an environment variable.
31
     *
32
     * @param string $name
33
     * @param string $value
34
     *
35
     * @throws \InvalidArgumentException
36
     *
37
     * @return bool
38
     */
39
    public function set(string $name, string $value);
40
 
41
    /**
42
     * Clear an environment variable.
43
     *
44
     * @param string $name
45
     *
46
     * @throws \InvalidArgumentException
47
     *
48
     * @return bool
49
     */
50
    public function clear(string $name);
51
}