public function getBit(int $ordinal): bool
    {
        if ($ordinal < 0 || $ordinal > $this->enumerationCount) {
            throw new InvalidArgumentException("Ordinal number must be between 0 and {$this->enumerationCount}");
        }

        return $this->{$this->fnDoGetBit}($ordinal);
    }
public function getBit(int $ordinal): bool
    {
        if ($ordinal < 0 || $ordinal > $this->enumerationCount) {
            throw new InvalidArgumentException("Ordinal number must be between 0 and {$this->enumerationCount}");
        }

        return $this->{$this->fnDoGetBit}($ordinal);
    }
public function getBit ( int $ ordinal ) : bool { if ( $ ordinal < 0 || $ ordinal > $ this -> enumerationCount ) { throw new InvalidArgumentException ( "Ordinal number must be between 0 and {$this->enumerationCount}" ) ; } return $ this -> { $ this -> fnDoGetBit } ( $ ordinal ) ; }
Get a bit at the given ordinal number

@param int $ordinal Ordinal number of bit to get
@return bool
@throws InvalidArgumentException If the given ordinal number is out-of-range
@uses doGetBitBin()
@uses doGetBitInt()
Get a bit at the given ordinal number