protected function checkTable(string $table)
    {
        if (!in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) {
            throw new InvalidArgumentException("Invalid table name: `{$table}`.");
        }
    }
protected function checkTable(string $table)
    {
        if (!in_array($table, [RoomContract::ROOMS_KEY, RoomContract::DESCRIPTORS_KEY])) {
            throw new InvalidArgumentException("Invalid table name: `{$table}`.");
        }
    }
protected function checkTable ( string $ table ) { if ( ! in_array ( $ table , [ RoomContract :: ROOMS_KEY , RoomContract :: DESCRIPTORS_KEY ] ) ) { throw new InvalidArgumentException ( "Invalid table name: `{$table}`." ) ; } }
Check table for rooms and descriptors.

@param string $table
Check table for rooms and descriptors .