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

namespace Kufer\KuferTools\Dozent\Kursplanung\TerminBearbeiten;

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;

    return $requestObj;
  }
}