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();
    }
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();
    }
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 ( ) ; }
Get the model elastic type.

@return string
Get the model elastic type .