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
/**
13
 * @internal This class is not covered by the backward compatibility promise for PHPUnit
14
 *
15
 * @psalm-immutable
16
 */
17
final class Variable
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
 
24
    /**
25
     * @var mixed
26
     */
27
    private $value;
28
 
29
    /**
30
     * @var bool
31
     */
32
    private $force;
33
 
34
    public function __construct(string $name, $value, bool $force)
35
    {
36
        $this->name  = $name;
37
        $this->value = $value;
38
        $this->force = $force;
39
    }
40
 
41
    public function name(): string
42
    {
43
        return $this->name;
44
    }
45
 
46
    public function value()
47
    {
48
        return $this->value;
49
    }
50
 
51
    public function force(): bool
52
    {
53
        return $this->force;
54
    }
55
}