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


class DozBezirk extends Datamodul
{
  public $dnr;
  public $bezirk;

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      default:
        return parent::getTyp($pFieldName);
      case 'dnr':
        return \DatamodulVarType::TYPE_INT;
    }
  }

  public function __toString()
  {
    return $this->bezirk ?? '';
  }
}