public function hasMonth($month)
    {
        $bitmask = $this->getMonthBitmask();
        $month   = (int) $month;

        $bit = pow(2, $month - 1);

        return ($bit === ($bit & $bitmask));
    }
public function hasMonth($month)
    {
        $bitmask = $this->getMonthBitmask();
        $month   = (int) $month;

        $bit = pow(2, $month - 1);

        return ($bit === ($bit & $bitmask));
    }
public function hasMonth ( $ month ) { $ bitmask = $ this -> getMonthBitmask ( ) ; $ month = ( int ) $ month ; $ bit = pow ( 2 , $ month - 1 ) ; return ( $ bit === ( $ bit & $ bitmask ) ) ; }
Check if bitmask have given month.

@param  int $month Month number (January: 1, February: 2, March: 3, April: 4...)
@return bool
Check if bitmask have given month .