refTable = $refTable; $this->refKey = $refKey; $this->targetTable = $targetTable; $this->targetKey = $targetKey; $this->refTypeColumn = $refTypeColumn; } function getReferenceTable() { return $this->refTable; } function getReferenceKey() { return $this->refKey; } function getTypeColumn() { return $this->refTypeColumn; } function getTargetTable() { return $this->targetTable; } function getTargetKey() { return $this->targetKey; } /** * @return true if the reference can point to more than one type */ function isGeneric() { return ($this->refTypeColumn !== NULL); } }