This should become a switch. Something like this:

```php
    public function appendLockHint($fromClause, $lockMode)
    {
        switch ($lockMode) {
            case LockMode::PESSIMISTIC_READ:
                $lockClause = ' WITH (READCOMMITTED)';
                break;

            case LockMode::PESSIMISTIC_WRITE:
                $lockClause = ' WITH (SERIALIZABLE)';
                break;

            case LockMode::NONE:
                $lockClause = ' WITH (READUNCOMMITTED)';
                break;

            default:
                $lockClause = '';
        }

        return $fromClause . $lockClause;

        if ($lockMode == LockMode::NONE) {
            return $fromClause . ' WITH (READUNCOMMITTED)'; // equivalent to NOLOCK
        }

        if ($lockMode == LockMode::PESSIMISTIC_READ) {
            return $fromClause . ' WITH (READCOMMITTED)';
        }

        if ($lockMode == LockMode::PESSIMISTIC_WRITE) {
            return $fromClause . ' WITH (SERIALIZABLE)'; // equivalent to HOLDLOCK
        }

        return $fromClause;
    }
```