| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare (strict_types=1); |
||
| 24 | public function isValidUserId(string $userId) |
||
| 25 | { |
||
| 26 | $selectQuery = (new Builder('QueryBuilder', 'Select'))->getBuilder(); |
||
| 27 | |||
| 28 | $selectQuery |
||
| 29 | ->top(1) |
||
| 30 | ->columns('StaffID') |
||
| 31 | ->from('[Staffs].[Staff]') |
||
| 32 | ->where( |
||
| 33 | 'StaffID', |
||
| 34 | '='. |
||
| 35 | $userId |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |