Esempio n. 1
0
 /**
  * Determine if a client is banned
  *
  * @param      Client  $client  The client to test
  *
  * @return     bool    True if the client is banned, false otherwise
  */
 public function isClientBanned(Client $client) : bool
 {
     return static::inSubArray($client->getConnection()->getRemoteAddress(), $this->room->getRoomBanCollection(), 'ip');
 }