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

namespace Kufer\KuferTools\Utils\WssField;

class WssFieldKurstagDatum extends WssField
{
  public function getChangedInfo($columnValues, $changedDm, $changedFields): array
  {
    list('changed' => $changedDm, 'changedFields' => $changedFields) = parent::getChangedInfo($columnValues, $changedDm, $changedFields);

    if (\in_array('datum', $changedFields)) { 
      $changedFields[] = 'wotag';
    }

    return array('changed' => $changedDm, 'changedFields' => $changedFields);
  }
}