Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of PHPUnit.
4
 *
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PHPUnit\TextUI\XmlConfiguration;
11
 
12
use PHPUnit\Util\VersionComparisonOperator;
13
 
14
/**
15
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
16
 *
17
 * @psalm-immutable
18
 */
19
final class TestDirectory
20
{
21
    /**
22
     * @var string
23
     */
24
    private $path;
25
 
26
    /**
27
     * @var string
28
     */
29
    private $prefix;
30
 
31
    /**
32
     * @var string
33
     */
34
    private $suffix;
35
 
36
    /**
37
     * @var string
38
     */
39
    private $phpVersion;
40
 
41
    /**
42
     * @var VersionComparisonOperator
43
     */
44
    private $phpVersionOperator;
45
 
46
    public function __construct(string $path, string $prefix, string $suffix, string $phpVersion, VersionComparisonOperator $phpVersionOperator)
47
    {
48
        $this->path               = $path;
49
        $this->prefix             = $prefix;
50
        $this->suffix             = $suffix;
51
        $this->phpVersion         = $phpVersion;
52
        $this->phpVersionOperator = $phpVersionOperator;
53
    }
54
 
55
    public function path(): string
56
    {
57
        return $this->path;
58
    }
59
 
60
    public function prefix(): string
61
    {
62
        return $this->prefix;
63
    }
64
 
65
    public function suffix(): string
66
    {
67
        return $this->suffix;
68
    }
69
 
70
    public function phpVersion(): string
71
    {
72
        return $this->phpVersion;
73
    }
74
 
75
    public function phpVersionOperator(): VersionComparisonOperator
76
    {
77
        return $this->phpVersionOperator;
78
    }
79
}