| 1 | <?php |
||
| 21 | class RepetitionBuilder extends Builder |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $min; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | private $max; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * RepetitionBuilder constructor. |
||
| 35 | * @param Mapping $mapping |
||
| 36 | * @param int $min |
||
| 37 | * @param int $max |
||
| 38 | * @param null|string $name |
||
| 39 | */ |
||
| 40 | public function __construct(Mapping $mapping, int $min, int $max, ?string $name = null) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return Symbol|Production|Concatenation |
||
| 49 | */ |
||
| 50 | public function reduce(): Symbol |
||
| 54 | } |
||
| 55 |