X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/phpunit/phpunit/src/Metadata/Parser
home
/
prisjneg
/
public_html
/
vendor
/
phpunit
/
phpunit
/
src
/
Metadata
/
Parser
/
📁
..
📁
Annotation
📄
AnnotationParser.php
(18.87 KB)
📄
AttributeParser.php
(24.46 KB)
📄
CachingParser.php
(2.46 KB)
📄
Parser.php
(1.07 KB)
📄
ParserChain.php
(2.18 KB)
📄
Registry.php
(1.02 KB)
Editing: Registry.php
<?php declare(strict_types=1); /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPUnit\Metadata\Parser; /** * Attribute and annotation information is static within a single PHP process. * It is therefore okay to use a Singleton registry here. * * @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit * * @internal This class is not covered by the backward compatibility promise for PHPUnit */ final class Registry { private static ?Parser $instance = null; public static function parser(): Parser { return self::$instance ?? self::$instance = self::build(); } private static function build(): Parser { return new CachingParser( new ParserChain( new AttributeParser, new AnnotationParser, ), ); } }
Upload File
Create Folder