public function listen() { $ip = $this->getIp(); if (is_null($ip)) { throw new Exceptions\WithoutIpException(); } if ($this->storage->exists($ip)) { throw new Exceptions\BlockedIpException(); } }