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

namespace Kufer\KuferTools\Dozent\Kursplanung\TerminUebersicht;

class TerminUebersichtNachAbsendenController extends TerminUebersichtController
{
  private $knr;
  private $statusCode;
  private $failedToUpdateKtAry;

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

  
  protected function getRequestObj()
  {
    $requestObj = new TerminUebersichtRequest();
    $requestObj->knr = $this->knr;
    $requestObj->statusCode = $this->statusCode;
    $requestObj->failedToUpdateKtAry = $this->failedToUpdateKtAry;
    
    $requestObj->pruefeObKursZuKurstagePasst = true;

    return $requestObj;
  }
}