Lines Matching refs:Document
7 use Elastica\Document;
13 * @var AbstractScript|Document
18 * @param AbstractScript|Document $document
28 public function setDocument(Document $document): self
57 * @param AbstractScript|Document $data
67 } elseif ($data instanceof Document) {
70 throw new \InvalidArgumentException('Data should be a Document or a Script.');
79 * @return Document|null
83 if (!$this->_data instanceof Document) {
105 * @return AbstractScript|Document
117 * @param AbstractScript|Document $data
124 if (!$data instanceof Document && !$data instanceof AbstractScript) {
125 throw new \InvalidArgumentException('The data needs to be a Document or a Script.');