public function setEndDate(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->day || $data->month || $data->year) {
            $date = new AnDate();
            $date->day((int) $data->day);
            $date->month((int) $data->month);
            $date->year((int) $data->year);
            $data->endDate = $date;
        }
    }
public function setEndDate(AnCommandContext $context)
    {
        $data = $context->data;

        if ($data->day || $data->month || $data->year) {
            $date = new AnDate();
            $date->day((int) $data->day);
            $date->month((int) $data->month);
            $date->year((int) $data->year);
            $data->endDate = $date;
        }
    }
public function setEndDate ( AnCommandContext $ context ) { $ data = $ context -> data ; if ( $ data -> day || $ data -> month || $ data -> year ) { $ date = new AnDate ( ) ; $ date -> day ( ( int ) $ data -> day ) ; $ date -> month ( ( int ) $ data -> month ) ; $ date -> year ( ( int ) $ data -> year ) ; $ data -> endDate = $ date ; } }
Set End Time action.

sets correct end date value to be used for a subscription setting

@param AnCommandContext $context Context parameter
@param void
Set End Time action .