src/Organizer/OrganizerCommandHandler.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 171-180 (lines=10) @@ | 
                                                            
                                    | 168 |  |      * @param AbstractLabelCommand $labelCommand | 
                                                            
                                    | 169 |  |      * @return Label | 
                                                            
                                    | 170 |  |      */ | 
                                                            
                                    | 171 |  |     private function createLabel(AbstractLabelCommand $labelCommand) | 
                                                            
                                    | 172 |  |     { | 
                                                            
                                    | 173 |  |         $labelName = new StringLiteral((string) $labelCommand->getLabel()); | 
                                                            
                                    | 174 |  |         $label = $this->labelRepository->getByName($labelName); | 
                                                            
                                    | 175 |  |  | 
                                                            
                                    | 176 |  |         return new Label( | 
                                                            
                                    | 177 |  |             $labelName->toNative(), | 
                                                            
                                    | 178 |  |             $label->getVisibility() === Visibility::VISIBLE() | 
                                                            
                                    | 179 |  |         ); | 
                                                            
                                    | 180 |  |     } | 
                                                            
                                    | 181 |  |  | 
                                                            
                                    | 182 |  |     /** | 
                                                            
                                    | 183 |  |      * @param DeleteOrganizer $deleteOrganizer | 
                                                                        
                 
                                                            
                    
src/Offer/OfferCommandHandler.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 240-249 (lines=10) @@ | 
                                                            
                                    | 237 |  |      * @param AbstractLabelCommand $labelCommand | 
                                                            
                                    | 238 |  |      * @return Label | 
                                                            
                                    | 239 |  |      */ | 
                                                            
                                    | 240 |  |     private function createLabel(AbstractLabelCommand $labelCommand) | 
                                                            
                                    | 241 |  |     { | 
                                                            
                                    | 242 |  |         $labelName = new StringLiteral((string) $labelCommand->getLabel()); | 
                                                            
                                    | 243 |  |         $label = $this->labelRepository->getByName($labelName); | 
                                                            
                                    | 244 |  |  | 
                                                            
                                    | 245 |  |         return new Label( | 
                                                            
                                    | 246 |  |             $labelName->toNative(), | 
                                                            
                                    | 247 |  |             $label->getVisibility() === Visibility::VISIBLE() | 
                                                            
                                    | 248 |  |         ); | 
                                                            
                                    | 249 |  |     } | 
                                                            
                                    | 250 |  |  | 
                                                            
                                    | 251 |  |     /** | 
                                                            
                                    | 252 |  |      * @param AbstractUpdateTitle $translateTitle |