Cake\ElasticSearch\Document::type PHP Method

type() public method

If this is a new document, this function returns null
public type ( ) : string | null
return string | null
    public function type()
    {
        if ($this->_result) {
            return $this->_result->getType();
        }
        return null;
    }