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 TestSuite
18
{
19
    /**
20
     * @var string
21
     */
22
    private $name;
23
 
24
    /**
25
     * @var TestDirectoryCollection
26
     */
27
    private $directories;
28
 
29
    /**
30
     * @var TestFileCollection
31
     */
32
    private $files;
33
 
34
    /**
35
     * @var FileCollection
36
     */
37
    private $exclude;
38
 
39
    public function __construct(string $name, TestDirectoryCollection $directories, TestFileCollection $files, FileCollection $exclude)
40
    {
41
        $this->name        = $name;
42
        $this->directories = $directories;
43
        $this->files       = $files;
44
        $this->exclude     = $exclude;
45
    }
46
 
47
    public function name(): string
48
    {
49
        return $this->name;
50
    }
51
 
52
    public function directories(): TestDirectoryCollection
53
    {
54
        return $this->directories;
55
    }
56
 
57
    public function files(): TestFileCollection
58
    {
59
        return $this->files;
60
    }
61
 
62
    public function exclude(): FileCollection
63
    {
64
        return $this->exclude;
65
    }
66
}