public getDocumentType ( ) : string | ||
return | string |
public function getDocumentType()
{
// if the type is defined use it else return the table name
if (isset($this->documentType) and !empty($this->documentType)) {
return $this->documentType;
}
return $this->getTable();
}