<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `Timetable.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//


namespace
{
    require_once 'Destroyable.php';
    require_once 'ArgumentException.php';
}

namespace Smartswitch\Telephony\Forwarding
{
    global $Smartswitch_Telephony_Forwarding__t_DayOfWeek;
    class DayOfWeek
    {
        const Monday = 0;
        const Tuesday = 1;
        const Wednesday = 2;
        const Thursday = 3;
        const Friday = 4;
        const Saturday = 5;
        const Sunday = 6;
    }

    $Smartswitch_Telephony_Forwarding__t_DayOfWeek = IcePHP_defineEnum('::Smartswitch::Telephony::Forwarding::DayOfWeek', array('Monday', 0, 'Tuesday', 1, 'Wednesday', 2, 'Thursday', 3, 'Friday', 4, 'Saturday', 5, 'Sunday', 6));
}

namespace Smartswitch\Telephony\Forwarding
{
    global $Smartswitch_Telephony_Forwarding__t_TimeOfDay;
    class TimeOfDay
    {
        public function __construct($hour=0, $minute=0)
        {
            $this->hour = $hour;
            $this->minute = $minute;
        }

        public function __toString()
        {
            global $Smartswitch_Telephony_Forwarding__t_TimeOfDay;
            return IcePHP_stringify($this, $Smartswitch_Telephony_Forwarding__t_TimeOfDay);
        }

        public $hour;
        public $minute;
    }

    global $IcePHP__t_int;
    $Smartswitch_Telephony_Forwarding__t_TimeOfDay = IcePHP_defineStruct('::Smartswitch::Telephony::Forwarding::TimeOfDay', '\\Smartswitch\\Telephony\\Forwarding\\TimeOfDay', array(
        array('hour', $IcePHP__t_int),
        array('minute', $IcePHP__t_int)));
}

namespace Smartswitch\Telephony\Forwarding
{
    global $Smartswitch_Telephony_Forwarding__t_Timetable;
    global $Smartswitch_Telephony_Forwarding__t_TimetablePrx;

    class TimetablePrxHelper
    {
        public static function checkedCast($proxy, $facetOrContext=null, $context=null)
        {
            return $proxy->ice_checkedCast('::Smartswitch::Telephony::Forwarding::Timetable', $facetOrContext, $context);
        }

        public static function uncheckedCast($proxy, $facet=null)
        {
            return $proxy->ice_uncheckedCast('::Smartswitch::Telephony::Forwarding::Timetable', $facet);
        }

        public static function ice_staticId()
        {
            return '::Smartswitch::Telephony::Forwarding::Timetable';
        }
    }
    $Smartswitch_Telephony_Forwarding__t_Timetable = IcePHP_defineClass('::Smartswitch::Telephony::Forwarding::Timetable', '\\Smartswitch\\Telephony\\Forwarding\\Timetable', -1, false, true, null, null);

    global $Ice__t_ObjectPrx;
    $Smartswitch_Telephony_Forwarding__t_TimetablePrx = IcePHP_defineProxy('::Smartswitch::Telephony::Forwarding::Timetable', $Ice__t_ObjectPrx, array($Smartswitch__t_DestroyablePrx));

    global $Smartswitch_Telephony_Forwarding__t_DayOfWeek;
    global $Smartswitch_Telephony_Forwarding__t_TimeOfDay;
    IcePHP_defineOperation($Smartswitch_Telephony_Forwarding__t_TimetablePrx, 'getFrom', 0, 0, 0, array(array($Smartswitch_Telephony_Forwarding__t_DayOfWeek)), null, array($Smartswitch_Telephony_Forwarding__t_TimeOfDay), null);
    IcePHP_defineOperation($Smartswitch_Telephony_Forwarding__t_TimetablePrx, 'setFrom', 0, 0, 0, array(array($Smartswitch_Telephony_Forwarding__t_DayOfWeek), array($Smartswitch_Telephony_Forwarding__t_TimeOfDay)), null, null, array($Smartswitch__t_ArgumentException));
    IcePHP_defineOperation($Smartswitch_Telephony_Forwarding__t_TimetablePrx, 'getTo', 0, 0, 0, array(array($Smartswitch_Telephony_Forwarding__t_DayOfWeek)), null, array($Smartswitch_Telephony_Forwarding__t_TimeOfDay), null);
    IcePHP_defineOperation($Smartswitch_Telephony_Forwarding__t_TimetablePrx, 'setTo', 0, 0, 0, array(array($Smartswitch_Telephony_Forwarding__t_DayOfWeek), array($Smartswitch_Telephony_Forwarding__t_TimeOfDay)), null, null, array($Smartswitch__t_ArgumentException));
}
?>
