Elastica\Document::getData PHP Метод

getData() публичный Метод

Returns the document data.
public getData ( ) : array | string
Результат array | string Document data
    public function getData()
    {
        return $this->_data;
    }

Usage Example

Пример #1
0
 /**
  * @param Document|array $documentOrSource Document object or source array
  * @return Message
  *
  * @throws \Exception
  * @throws GdbotsPbjException
  */
 public function unmarshal($documentOrSource)
 {
     if ($documentOrSource instanceof Document) {
         return $this->doUnmarshal($documentOrSource->getData());
     }
     return $this->doUnmarshal($documentOrSource);
 }
All Usage Examples Of Elastica\Document::getData