"Fossies" - the Fresh Open Source Software Archive

Member "phpunit-9.0.1/src/TextUI/Configuration/TestSuite/TestDirectory.php" (13 Feb 2020, 1647 Bytes) of package /linux/www/phpunit-9.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "TestDirectory.php": 9.0.0_vs_9.0.1.

    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\Configuration;
   11 
   12 use PHPUnit\Util\VersionComparisonOperator;
   13 
   14 /**
   15  * @internal This class is not covered by the backward compatibility promise for PHPUnit
   16  * @psalm-immutable
   17  */
   18 final class TestDirectory
   19 {
   20     /**
   21      * @var string
   22      */
   23     private $path;
   24 
   25     /**
   26      * @var string
   27      */
   28     private $prefix;
   29 
   30     /**
   31      * @var string
   32      */
   33     private $suffix;
   34 
   35     /**
   36      * @var string
   37      */
   38     private $phpVersion;
   39 
   40     /**
   41      * @var VersionComparisonOperator
   42      */
   43     private $phpVersionOperator;
   44 
   45     public function __construct(string $path, string $prefix, string $suffix, string $phpVersion, VersionComparisonOperator $phpVersionOperator)
   46     {
   47         $this->path               = $path;
   48         $this->prefix             = $prefix;
   49         $this->suffix             = $suffix;
   50         $this->phpVersion         = $phpVersion;
   51         $this->phpVersionOperator = $phpVersionOperator;
   52     }
   53 
   54     public function path(): string
   55     {
   56         return $this->path;
   57     }
   58 
   59     public function prefix(): string
   60     {
   61         return $this->prefix;
   62     }
   63 
   64     public function suffix(): string
   65     {
   66         return $this->suffix;
   67     }
   68 
   69     public function phpVersion(): string
   70     {
   71         return $this->phpVersion;
   72     }
   73 
   74     public function phpVersionOperator(): VersionComparisonOperator
   75     {
   76         return $this->phpVersionOperator;
   77     }
   78 }