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

namespace Kufer\KuferTools\Mitarbeiter\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\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;
  }
}