<?php
 namespace App\ReportsData\EntityFields; class CorporateContact extends \App\ReportsData\EntityFields\GeneralAbstract { protected function getDbTableName() { global $DBTRd_corporateContacts; return $DBTRd_corporateContacts; } protected function getCustomValues($fieldName) { switch ($fieldName) { case 'corporate': return new Corporate($this->values['idCorporate']); case 'user': return new User($this->values['idUser']); case 'addUser': return new User($this->values['idAddUser']); case 'updateUser': return new User($this->values['idUpdateUser']); default: return parent::getCustomValues($fieldName); } } } 