aboutsummaryrefslogtreecommitdiff
path: root/tests/mocks/MockCompiler.php
blob: 89db68f667c0475a0195b4f7fd2bda2c71c94af4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
declare(strict_types=1);

/**
 * @author: Alexander Kiryukhin <alexander@kiryukhin.su>
 * @license: MIT
 */

use NeonXP\Dotenv\Compiler\CompilerInterface;
use NeonXP\Dotenv\Types\KeyValue;

/**
 * Class MockCompiler
 */
class MockCompiler implements CompilerInterface
{

    /**
     * @param KeyValue[] $collection
     */
    function setRawCollection(array $collection): void
    {
        // Do nothing
    }

    /**
     * @param KeyValue $keyValue
     * @return KeyValue
     */
    function compileKeyValue(KeyValue $keyValue): KeyValue
    {
        return $keyValue;
    }
}