I'd be tempted to rewrite this without the switch, something like this might be a little nicer:

```php

if (in_array($family, array(self::IPFAMILY_IPV4, self::IPFAMILY_IPV6))
  $this->_ipFamily = $family
else
  throw new \Exception("'$family' is not a valid address family");