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

namespace Kufer\Web\KuferTools\Dozent\Kursplanung\TerminBearbeiten;

use Kufer\Web\KuferTools\Basis\Kursdetails\Detailsreiter\Termine\TerminBearbeiten\TerminBearbeitenFormularRequest;

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

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

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

    return $requestObj;
  }
}