Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
ExpressionContainsRepeatsInRepeats
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\RegexValueObjects\Exceptions;
3
4use Apie\Core\Exceptions\ApieException;
5use Apie\Core\ValueObjects\Utils;
6
7class ExpressionContainsRepeatsInRepeats extends ApieException
8{
9    public function __construct(mixed $input)
10    {
11        parent::__construct(
12            sprintf(
13                '%s is a valid regular expression but contains nested repetitions',
14                Utils::displayMixedAsString($input)
15            )
16        );
17    }
18}