public function thisWeek()
    {
        $scheduleWeek = $this->scheduler->getScheduleWeek();
        $currentWeek = $this->now->format('W');

        //if a month is defined, week refers to the week of the month
        $scheduleMonth = $this->scheduler->getScheduleMonth();
        if (!is_null($scheduleMonth) && $scheduleMonth !== Scheduler::NONE) {
            return $this->isCurrent($scheduleWeek, $this->now->weekOfMonth);
        }

        //if it's an odd or even week
        if ($scheduleWeek == 'odd' && $currentWeek & 1) {
            return true;
        } elseif ($scheduleWeek == 'even' && !($currentWeek & 1)) {
            return true;
        }

        return $this->isCurrent($scheduleWeek, $this->now->weekOfYear);
    }
public function thisWeek()
    {
        $scheduleWeek = $this->scheduler->getScheduleWeek();
        $currentWeek = $this->now->format('W');

        //if a month is defined, week refers to the week of the month
        $scheduleMonth = $this->scheduler->getScheduleMonth();
        if (!is_null($scheduleMonth) && $scheduleMonth !== Scheduler::NONE) {
            return $this->isCurrent($scheduleWeek, $this->now->weekOfMonth);
        }

        //if it's an odd or even week
        if ($scheduleWeek == 'odd' && $currentWeek & 1) {
            return true;
        } elseif ($scheduleWeek == 'even' && !($currentWeek & 1)) {
            return true;
        }

        return $this->isCurrent($scheduleWeek, $this->now->weekOfYear);
    }
public function thisWeek ( ) { $ scheduleWeek = $ this -> scheduler -> getScheduleWeek ( ) ; $ currentWeek = $ this -> now -> format ( 'W' ) ; //if a month is defined, week refers to the week of the month $ scheduleMonth = $ this -> scheduler -> getScheduleMonth ( ) ; if ( ! is_null ( $ scheduleMonth ) && $ scheduleMonth !== Scheduler :: NONE ) { return $ this -> isCurrent ( $ scheduleWeek , $ this -> now -> weekOfMonth ) ; } //if it's an odd or even week if ( $ scheduleWeek == 'odd' && $ currentWeek & 1 ) { return true ; } elseif ( $ scheduleWeek == 'even' && ! ( $ currentWeek & 1 ) ) { return true ; } return $ this -> isCurrent ( $ scheduleWeek , $ this -> now -> weekOfYear ) ; }
Determine if the provided expression refers to this week

@return bool
Determine if the provided expression refers to this week