src/Month.php
public function getWeeks()
    {
        $intervaloSemanal = DateInterval::createFromDateString('1 week');
        $dataFim = clone $this->endDate;
        $periodo = new DatePeriod($this->startDate, $intervaloSemanal, $dataFim);
        $semanas = array();
        foreach ($periodo as $dia) {
            $semanas[] = new Week($dia->format('W'), $dia->format('Y'));
        }
        return $semanas;
    }
public function getWeeks()
    {
        $intervaloSemanal = DateInterval::createFromDateString('1 week');
        $dataFim = clone $this->endDate;
        $periodo = new DatePeriod($this->startDate, $intervaloSemanal, $dataFim);
        $semanas = array();
        foreach ($periodo as $dia) {
            $semanas[] = new Week($dia->format('W'), $dia->format('Y'));
        }
        return $semanas;
    }
Retorna um array com as semanas deste mês
@return \p13\datetime\Week[]