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 Groups
18
{
19
    /**
20
     * @var GroupCollection
21
     */
22
    private $include;
23
 
24
    /**
25
     * @var GroupCollection
26
     */
27
    private $exclude;
28
 
29
    public function __construct(GroupCollection $include, GroupCollection $exclude)
30
    {
31
        $this->include = $include;
32
        $this->exclude = $exclude;
33
    }
34
 
35
    public function hasInclude(): bool
36
    {
37
        return !$this->include->isEmpty();
38
    }
39
 
40
    public function include(): GroupCollection
41
    {
42
        return $this->include;
43
    }
44
 
45
    public function hasExclude(): bool
46
    {
47
        return !$this->exclude->isEmpty();
48
    }
49
 
50
    public function exclude(): GroupCollection
51
    {
52
        return $this->exclude;
53
    }
54
}