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