public function next() { if (!$this->valid()) { $this->current = new Week($this->getFirstMonday()); } else { $this->current = $this->current->getNext(); if ($this->current->getBegin()->format('m') != $this->begin->format('m')) { $this->current = null; } } }