I would have written:

```php
if ($verbosity < 1) {
    $verbosity = 1;
} elseif ($verbosity > 3) {
   $verbosity = 3;
}
```