public function getDatePeriod()
    {
        return new \DatePeriod($this->begin, $this->begin->diff($this->end), $this->end);
    }
public function getDatePeriod()
    {
        return new \DatePeriod($this->begin, $this->begin->diff($this->end), $this->end);
    }
public function getDatePeriod ( ) { return new \ DatePeriod ( $ this -> begin , $ this -> begin -> diff ( $ this -> end ) , $ this -> end ) ; }
Returns the period as a DatePeriod.

@return \DatePeriod
Returns the period as a DatePeriod .