src/Infrastructure/DBAL/DbalShiftMapper.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 121-128 (lines=8) @@ | 
                                                            
                                    | 118 |  |         return $this->loadAll($statement); | 
                                                            
                                    | 119 |  |     } | 
                                                            
                                    | 120 |  |  | 
                                                            
                                    | 121 |  |     public function findShiftsByEmployeeId($employee_id) | 
                                                            
                                    | 122 |  |     { | 
                                                            
                                    | 123 |  |         $statement = $this->db->prepare(self::findByEmployeeIdStatement()); | 
                                                            
                                    | 124 |  |         $statement->bindValue(1, $employee_id, \PDO::PARAM_INT); | 
                                                            
                                    | 125 |  |         $statement->execute(); | 
                                                            
                                    | 126 |  |  | 
                                                            
                                    | 127 |  |         return $this->loadAll($statement); | 
                                                            
                                    | 128 |  |     } | 
                                                            
                                    | 129 |  |  | 
                                                            
                                    | 130 |  |     public function findShiftsInTimePeriod(DateTimeInterface $start, DateTimeInterface $end) | 
                                                            
                                    | 131 |  |     { | 
                                                                        
                 
                                                            
                    
src/Infrastructure/DBAL/DbalUserMapper.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 52-59 (lines=8) @@ | 
                                                            
                                    | 49 |  |         return $user; | 
                                                            
                                    | 50 |  |     } | 
                                                            
                                    | 51 |  |  | 
                                                            
                                    | 52 |  |     public function findByRole($role) | 
                                                            
                                    | 53 |  |     { | 
                                                            
                                    | 54 |  |         $statement = $this->db->prepare(self::findByRoleStatement()); | 
                                                            
                                    | 55 |  |         $statement->bindValue(1, $role, \PDO::PARAM_STR); | 
                                                            
                                    | 56 |  |         $statement->execute(); | 
                                                            
                                    | 57 |  |  | 
                                                            
                                    | 58 |  |         return $this->loadAll($statement); | 
                                                            
                                    | 59 |  |     } | 
                                                            
                                    | 60 |  |  | 
                                                            
                                    | 61 |  |     protected function doLoad($id, array $resultSet) | 
                                                            
                                    | 62 |  |     { |