<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Veranstalter\KursUebersicht\Detailsreiter\Termine\TerminBearbeiten;

class TerminBearbeitenNachAbsendenController extends TerminBearbeitenFormularController
{
  private $knr;
  private $ktId;
  private $statusCode;

  public function __construct($knr, $ktId, $pStatusCode)
  {
    $this->knr = $knr;
    $this->ktId = $ktId;
    $this->statusCode = $pStatusCode;
  }

  
  protected function getRequestObj()
  {
    $requestObj = new TerminBearbeitenFormularRequest();
    $requestObj->knr = $this->knr;
    $requestObj->ktId = $this->ktId;
    $requestObj->statusCode = $this->statusCode;
    
    $requestObj->pruefeObKursZuKurstagePasst = true;
    $requestObj->terminBearbeitet = true;

    return $requestObj;
  }
}