Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
*
* 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,
),
);
}
}