summaryrefslogtreecommitdiff
path: root/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php
blob: 306a63fcfaea7b8df4a6e36c763e6dbf0e6a9857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

declare(strict_types=1);

namespace Dotenv\Repository\Adapter;

interface ReaderInterface
{
    /**
     * Read an environment variable, if it exists.
     *
     * @param non-empty-string $name
     *
     * @return \PhpOption\Option<string>
     */
    public function read(string $name);
}