<?php
$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] ?: array()) + array("_a8fa98c95a8a4969" . "39eaebfef66865b4" => base64_decode("d2" . "Vl" . "aw" . "=="), "_0788425a89477a5f" . "6ac1bd2ceb434967" => base64_decode("RVJST1I6OiBVbmtub3duIHBlc" . "mlvZCAtIA=="), "_07e0706709a15e456d6664" . "d499040d73" => base64_decode("Yml3ZW" . "Vr"), "_e2ecb80cd1b605a95" . "1ad84d608101ac4" => base64_decode("bW9udG" . "g="), "_950c864c3fc8d7c4db56" . "1eea71d4aca9" => base64_decode("eWVhcg" . "=="));






class HpDateInterval
{
    
    
    
    
    
    
    protected $start_date;
    
    
    
    
    
    
    protected $end_date;
    protected $processer;
    
    
    public function SetStartDate(Date $_67a0d624aebcceb0abd5ce56a53ff06f)
    {
        $this->start_date = $_67a0d624aebcceb0abd5ce56a53ff06f;
    }
    public function SetEndDate(Date $_67a0d624aebcceb0abd5ce56a53ff06f)
    {
        $this->end_date = $_67a0d624aebcceb0abd5ce56a53ff06f;
    }
    public function SetPeriod($_68865ed7b59f5ee9253afff85b97015b)
    {
        switch ($_68865ed7b59f5ee9253afff85b97015b) {
            case $GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_a8fa98c95a8a496939eaebfef66" . "865b4"]:
                $this->processer = new HpDateIntervalWeek();
                break;
            case $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_07e0706709a15e456d6664d49904" . "0d73"]:
                $this->processer = new HpDateIntervalBiWeek();
                break;
            case $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_e2ecb80cd1b605a951ad8" . "4d608101ac4"]:
                $this->processer = new HpDateIntervalMonth();
                break;
            case $GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_950c864c3fc8d7c4db561eea71" . "d4aca9"]:
                $this->processer = new HpDateIntervalYear();
                break;
            default:
                throw new Exception($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_0788425a89477a5f6ac1b" . "d2ceb434967"] . $_68865ed7b59f5ee9253afff85b97015b);
        }
    }
    public function GetIntervalsArray()
    {
        return $this->processer->GetIntervalsArray($this->start_date, $this->end_date);
    }
}