src/Grammar/Builder/Alternation.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 23-29 (lines=7) @@ | 
                                                            
                                    | 20 |  |     /** | 
                                                            
                                    | 21 |  |      * @return Rule|AlternationRule | 
                                                            
                                    | 22 |  |      */ | 
                                                            
                                    | 23 |  |     public function build(): Rule | 
                                                            
                                    | 24 |  |     { | 
                                                            
                                    | 25 |  |         $rule = new AlternationRule($this->name, $this->children, $this->nodeId); | 
                                                            
                                    | 26 |  |         $rule->setDefaultId($this->defaultId); | 
                                                            
                                    | 27 |  |  | 
                                                            
                                    | 28 |  |         return $rule; | 
                                                            
                                    | 29 |  |     } | 
                                                            
                                    | 30 |  | } | 
                                                            
                                    | 31 |  |  | 
                                                                        
                 
                                                            
                    
src/Grammar/Builder/Concatenation.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 23-29 (lines=7) @@ | 
                                                            
                                    | 20 |  |     /** | 
                                                            
                                    | 21 |  |      * @return Rule|ConcatenationRule | 
                                                            
                                    | 22 |  |      */ | 
                                                            
                                    | 23 |  |     public function build(): Rule | 
                                                            
                                    | 24 |  |     { | 
                                                            
                                    | 25 |  |         $rule = new ConcatenationRule($this->name, $this->children, $this->nodeId); | 
                                                            
                                    | 26 |  |         $rule->setDefaultId($this->defaultId); | 
                                                            
                                    | 27 |  |  | 
                                                            
                                    | 28 |  |         return $rule; | 
                                                            
                                    | 29 |  |     } | 
                                                            
                                    | 30 |  | } | 
                                                            
                                    | 31 |  |  | 
                                                                        
                 
                                                            
                    
src/Grammar/Builder/Repetition.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 48-54 (lines=7) @@ | 
                                                            
                                    | 45 |  |     /** | 
                                                            
                                    | 46 |  |      * @return Rule|RepetitionRule | 
                                                            
                                    | 47 |  |      */ | 
                                                            
                                    | 48 |  |     public function build(): Rule | 
                                                            
                                    | 49 |  |     { | 
                                                            
                                    | 50 |  |         $rule = new RepetitionRule($this->name, $this->min, $this->max, $this->children, $this->nodeId); | 
                                                            
                                    | 51 |  |         $rule->setDefaultId($this->defaultId); | 
                                                            
                                    | 52 |  |  | 
                                                            
                                    | 53 |  |         return $rule; | 
                                                            
                                    | 54 |  |     } | 
                                                            
                                    | 55 |  | } | 
                                                            
                                    | 56 |  |  |