src/Carbon/CarbonPeriod.php
protected function prepareForReturn(CarbonInterface $date)
    {
        $date = call_user_func([$this->dateClass, 'make'], $date);

        if ($this->timezone) {
            $date = $date->setTimezone($this->timezone);
        }

        return $date;
    }
protected function prepareForReturn(CarbonInterface $date)
    {
        $date = call_user_func([$this->dateClass, 'make'], $date);

        if ($this->timezone) {
            $date = $date->setTimezone($this->timezone);
        }

        return $date;
    }
protected function prepareForReturn ( CarbonInterface $ date ) { $ date = call_user_func ( [ $ this -> dateClass , 'make' ] , $ date ) ; if ( $ this -> timezone ) { $ date = $ date -> setTimezone ( $ this -> timezone ) ; } return $ date ; }
Prepare given date to be returned to the external logic.

@param CarbonInterface $date

@return Carbon
Prepare given date to be returned to the external logic .