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

class KEBStoff extends Datamodul
{
  
  public $id;

  
  public $description;

  public static function create(string $id, string $description): KEBStoff
  {
    $result = new KEBStoff();
    $result->id = $id;
    $result->description = $id . ' ' . $description;

    return $result;
  }

  public function getTyp($pFieldName)
  {
    switch ($pFieldName) {
      case 'id':
        return \DatamodulVarType::TYPE_STRING;
    }

    return parent::getTyp($pFieldName);
  }
}