<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */

namespace Kufer\Web\KuferTools\Veranstalter\KursUebersicht\Detailsreiter\Termine\TerminHinzufuegen;

class TerminHinzufuegenNachAbsendenController extends TerminHinzufuegenFormularController
{
  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 \Kufer\Web\KuferTools\Basis\Kursdetails\Detailsreiter\Termine\TerminHinzufuegen\TerminHinzufuegenFormularRequest();
    $requestObj->knr = $this->knr;
    $requestObj->ktId = $this->ktId;
    $requestObj->statusCode = $this->statusCode;
    
    $requestObj->pruefeObKursZuKurstagePasst = true;
    $requestObj->terminHinzugefuegt = true;

    return $requestObj;
  }
}